Kompilatorfel C2292

"identifierare": arvsrepresentation i bästa fall: "representation1" deklarerad men "representation2" krävs

Example

Kompilering av följande kod med /vmb ("Alltid bästa fall"-representation) resulterar i C2292.

// C2292.cpp
// compile with: /vmb
class __single_inheritance X;

struct A { };
struct B { };
struct X : A, B { };  // C2292, X uses multiple inheritance