Compiler Error C2208
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2208.
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: