Compiler Error C2805
binary 'operator operator' has too few parameters
The binary operator has no parameters.
The following sample generates C2805:
// C2805.cpp
// compile with: /c
class X {
public:
X operator< ( void ); // C2805 must take one parameter
X operator< ( X ); // 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