编译器错误 C2802

静态成员“operator operator”没有形参

static 成员函数声明的运算符必须至少有一个参数。

以下示例生成 C2802:

// C2802.cpp
// compile with: /clr /c
ref class A {
   static operator+ ();   // C2802
   static operator+ (A^, A^);   // OK
};