共用方式為


編譯器錯誤 C2292

'identifier': 最佳案例繼承表示法: 'representation1' 已宣告,但需要 'representation2'

使用 /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