Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Error C2286

Error Message

pointers to members of 'identifier' representation is already set to 'inheritance' – declaration ignored

Two different pointer-to-members representations exist for class.

For more information, see Inheritance Keywords.

Example

The following sample generates C2286:

// C2286.cpp
// compile with: /c
class __single_inheritance X;
class __multiple_inheritance X;   // C2286
class  __multiple_inheritance Y;   // OK

Community Additions

ADD
Show:
© 2015 Microsoft