“function”:“novtable”只能应用于类声明或定义
注解
此错误可能由将 __declspec(novtable) 与函数一起使用导致。
示例
以下示例生成 C2498:
// C2498.cpp
// compile with: /c
void __declspec(novtable) f() {} // C2498
class __declspec(novtable) A {}; // OK
“function”:“novtable”只能应用于类声明或定义
此错误可能由将 __declspec(novtable) 与函数一起使用导致。
以下示例生成 C2498:
// C2498.cpp
// compile with: /c
void __declspec(novtable) f() {} // C2498
class __declspec(novtable) A {}; // OK