Increment and Decrement Operators Should not be Applied to Bool Variables
According to the C++ Standard, you are still allowed to apply operator ++ to a variable of type bool for backward compatibility with old code. However, this practice is deprecated