Compiler Error C2518
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 C2518.
keyword 'keyword' illegal in base class list; ignored
The keywords class and struct should not appear in a base class list.
The following sample generates C2518:
// C2518.cpp
// compile with: /c
class B {};
class C : public class B {}; // C2518
class D: public B {}; // OK
Show: