此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
“destructor”:接口不能有析构函数
Visual C++ 接口不能有析构函数。
以下示例生成 C2849:
// C2849.cpp // compile with: /c __interface C { ~C(); // C2849 destructor not allowed in an interface };
此页面是否有帮助?