Compiler Error C2807
the second formal parameter to postfix 'operator operator' must be 'int'
The second parameter to a postfix operator has the wrong type.
The following sample generates C2807:
// C2807.cpp
// compile with: /c
class X {
public:
X operator++ ( X ); // C2807 nonvoid parameter
X operator++ ( int ); // OK, int parameter
};
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