title: C++ - What is this doing if the constructor is private?
body: <p>In the code below, why does the compiler not complain for mClass2?</p>
  
  <pre><code>class CMyClass{
  private:
      CMyClass(){}
  };
  
  void TestMethod(){
      CMyClass mClass1;   //Fails.
      CMyClass mClass2(); //Works.
  }
  </code></pre>