Compiler Error C2428

'operation' : not allowed on operand of type 'bool'

The pre-decrement and post-decrement operators (--) cannot be applied to objects of type bool. For example:

void g(bool fFlag) {
   --fFlag;   //Error
   fFlag--;   //Error
}