Pattern: Operand of a postfix increment operator is bool
Issue: -
The operand of a postfix increment operator may be of type bool but it is deprecated by C++ Standard (Annex D-1) and the operand is always set to true. You should assign it the value true
instead.