'operation' : not allowed on operand of type 'bool'
You cannot apply a decrement operator to objects of type bool.
Example
void g(bool fFlag) { --fFlag; //Error fFlag--; //Error }