Export (0) Print
Expand All
Expand Minimize

Compiler Error C2806

Visual Studio 6.0

'operator symbol' has too many formal parameters

The specified overloaded operator was declared with too many parameters.

The following is an example of this error:

class X
{
public:
   X operator++ ( int, int ); // error, more than 1 parameter
   X operator++ ( int );      // OK
} ;
Show:
© 2014 Microsoft