integer-promotion

Tag

Cards List
#integer-promotion

The complement of true is true, except when it's false

Lobsters Hottest ↗ · 2026-10-04 Cached

A blog post analyzing WG21's P4313R1 proposal for C++ bitmask enum operations and exploring the pitfalls of integral promotion and boolean conversion when performing bitwise operations (such as ~true) on small integral types and bool.

0 favorites 0 likes
← Back to home

Submit Feedback