編譯器錯誤 C3197
'keyword' : 只能在定義中使用
關鍵詞在宣告中使用,但只在定義中有效。
下列範例會產生 C3197:
// C3197.cpp
// compile with: /clr /c
ref struct R abstract; // C3197
ref struct R abstract {}; // OK
public ref class MyObject; // C3197
ref class MyObject; // OK
public ref class MyObject {}; // OK