Compiler Error C2208

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Compiler Error C2208 on docs.microsoft.com. 'type' : no members defined using this type

An identifier resolving to a type name is in an aggregate declaration, but the compiler cannot declare a member.

The following sample generates C2208:

// C2208.cpp  
class C {  
   C;   // C2208  
   C(){}   // OK  
};  

Show: