Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C2250
Collapse the table of content
Expand the table of content

Compiler Error C2250

Error Message

'identifier' : ambiguous inheritance of 'class::member'

The derived class inherits more than one override of a virtual function of a virtual base class. These overrides are ambiguous in the derived class.

The following sample generates C2286:

// C2250.cpp
// compile with: /c
// C2250 expected
struct V {
   virtual void vf();

struct A : virtual V {
   void vf();

struct B : virtual V {
   void vf();

struct D : A, B {
   // Uncomment the following line to resolve.
   // void vf();

Community Additions

© 2015 Microsoft