靜態成員 'operator operator' 沒有型式參數
備註
成員函式所 static 宣告的運算符必須至少有一個參數。
Example
下列範例會產生 C2802:
// C2802.cpp
// compile with: /clr /c
ref class A {
static operator+ (); // C2802
static operator+ (A^, A^); // OK
};
靜態成員 'operator operator' 沒有型式參數
成員函式所 static 宣告的運算符必須至少有一個參數。
下列範例會產生 C2802:
// C2802.cpp
// compile with: /clr /c
ref class A {
static operator+ (); // C2802
static operator+ (A^, A^); // OK
};