“operator”: 被保留并且不能用作 ref 类或值类型的成员。 必须使用“operator”关键字定义 CLR 或 WinRT 运算符
编译器检测到了使用 C++ 托管扩展语法的运算符定义。 必须对运算符使用 C++ 语法。
下面的示例生成 C3195,并演示如何修复此错误:
// C3195.cpp
// compile with: /clr /LD
#using <mscorlib.dll>
value struct V {
static V op_Addition(V v, int i); // C3195
static V operator +(V v, char c); // OK for new C++ syntax
};