共用方式為


編譯器錯誤 C2806

二進位「運算子運算子」的型式參數太多

多載運算子有太多參數。

下列範例會產生 C2806:

// C2806.cpp
// compile with: /c
class X {
public:
   X operator++ ( int, int );   // C2806 more than 1 parameter
   X operator++ ( int );   // OK
} ;