後置 'operator operator' 的第二個型式參數必須是 'int'
備註
後置運算子的第二個參數具有錯誤的類型。
Example
下列範例會產生 C2807:
// C2807.cpp
// compile with: /c
class X {
public:
X operator++ ( X ); // C2807 nonvoid parameter
X operator++ ( int ); // OK, int parameter
};
後置 'operator operator' 的第二個型式參數必須是 'int'
後置運算子的第二個參數具有錯誤的類型。
下列範例會產生 C2807:
// C2807.cpp
// compile with: /c
class X {
public:
X operator++ ( X ); // C2807 nonvoid parameter
X operator++ ( int ); // OK, int parameter
};