Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 396 Bytes

incrementboolean.md

File metadata and controls

11 lines (6 loc) · 396 Bytes

Pattern: Operand of a postfix increment operator is bool

Issue: -

Description

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.

Further Reading