编译器错误 C2292

“identifier”:best case 继承表示形式:已声明“表示形式 1”,但需要“表示形式 2”

使用 /vmb 编译以下代码(“Best-case always”表示形式)会导致 C2292。

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

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