编译器错误 C2574

“destructor”:不能声明为静态

析构函数和构造函数都不能被声明为 static

以下示例生成 C2574:

// C2574.cpp
// compile with: /c
class A {
   virtual static ~A();   // C2574
   //  try the following line instead
   // virtual ~A();
};