Quantcast
Channel: Imperfect C++
Viewing all articles
Browse latest Browse all 14

New Recommendation in Reprint: use of bools in literal expressions

$
0
0
A new recommendation has been added, in section 15.3 (on page 237):

Recommendation: Do not use literal true in conditional expressions. Avoid using literal false in conditonal expressions.

This is due to the discussed issues regarding the possibility of multiple non-false values in C/C++.

Viewing all articles
Browse latest Browse all 14

Trending Articles