Compiler Error C2499
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 C2499.
class' : a class cannot be its own base class
You attempted to specify the class that you are defining as a base class.
The following sample generates C2499:
// C2499.cpp
// compile with: /c
class CMyClass : public CMyClass {}; // C2499
class CMyClass{}; // OK
Show: