“type”:没有显式声明为抽象,但具有抽象函数
包含抽象函数的类型应本身标记为抽象。
示例
下面的示例会生成 C4570。
// C4570.cpp
// compile with: /clr /W3 /c
ref struct X { // C4570
// try the following line instead
// ref class X abstract {
virtual void f() abstract;
};
“type”:没有显式声明为抽象,但具有抽象函数
包含抽象函数的类型应本身标记为抽象。
下面的示例会生成 C4570。
// C4570.cpp
// compile with: /clr /W3 /c
ref struct X { // C4570
// try the following line instead
// ref class X abstract {
virtual void f() abstract;
};