'identifier' : 'class::member' 的模棱兩可繼承
備註
衍生類別會繼承虛擬基類之虛擬函式的多個覆寫。 這些覆寫在衍生類別中模棱兩可。
Example
以下範例產生 C2250:
// C2250.cpp
// compile with: /c
// C2250 expected
struct V {
virtual void vf();
};
struct A : virtual V {
void vf();
};
struct B : virtual V {
void vf();
};
struct D : A, B {
// Uncomment the following line to resolve.
// void vf();
};