is this correct way of creating a singleton class in c++?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/137975/what-is-so-bad-about-singletons">What is so bad about Singletons?</a><br>
  <a href="http://stackoverflow.com/questions/4084087/singleton-pattern-in-c">Singleton pattern in C++</a>  </p>
</blockquote>



<p>I want to create a singleton class. For that what I am doing is creating a class with all its member and method as Static. Something like this.</p>

<pre><code>class a
{
    static int a;
    static GetA();
}
</code></pre>

<p>now all the classes who want to use my singleton class cannot create any obj for my class and also will get same value. I just want to know whether this implementation will solve all the purpose and fulfill all criteria for creating singleton class.</p>
