Export (0) Print
Expand All
Expand Minimize

Compiler Error C2518

Error Message

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

Community Additions

© 2014 Microsoft