Compiler Error C2808
unary 'operator operator' has too many formal parameters
The unary operator has a nonvoid parameter list.
The following sample generates C2808:
// C2808.cpp
// compile with: /c
class X {
public:
X operator! ( X ); // C2808 nonvoid parameter list
X operator! ( void ); // 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