此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
“destructor”:不能声明为静态
析构函数和构造函数都不能被声明为 static。
static
以下示例生成 C2574:
// C2574.cpp // compile with: /c class A { virtual static ~A(); // C2574 // try the following line instead // virtual ~A(); };
此页面是否有帮助?