Sdílet prostřednictvím


Chyba kompilátoru C2287

'class': reprezentace dědičnosti: "representation1" je méně obecná než požadovaná reprezentace2.

Poznámky

Třída je deklarována s jednodušší reprezentací, než je požadováno.

Example

Následující příklad vygeneruje C2287:

// C2287.cpp
// compile with: /vmg /c
class __single_inheritance X;
class __single_inheritance Y;

struct A { };
struct B { };
struct X : A, B { };  // C2287  X uses multiple inheritance
struct Y : A { };  // OK