Compiler Error C2806
'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 {
public:
X operator++ ( int, int ); // C2806 more than 1 parameter
X operator++ ( int ); // OK
} ;
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for