Compiler Error C2428
'operation' : not allowed on operand of type 'bool'
You cannot apply a decrement operator to objects of type bool
.
The following sample generates C2428:
// C2428.cpp
void g(bool fFlag) {
--fFlag; // C2428
fFlag--; // C2428
}
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