“class”: 继承表示形式: “representation1” 不如所需的 “representation2” 通用
使用了比所需表示形式更简单的表示形式来声明类。
以下示例将生成 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