Compiler Error C2806
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Compiler Error C2806

Error Message

'operator operator' has too many formal parameters

An overloaded operator has too many parameters.

The following sample generates C2806:

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