此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
静态成员“operator operator”没有形参
由 static 成员函数声明的运算符必须至少有一个参数。
static
以下示例生成 C2802:
// C2802.cpp // compile with: /clr /c ref class A { static operator+ (); // C2802 static operator+ (A^, A^); // OK };
此页面是否有帮助?