This documentation is archived and is not being maintained.

Compiler Error C2208

Error Message

'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: