O'Reilly logo
  • wenbo yang thinks this is interesting:

Flag f2 = static_cast<Flag>(5);

From

Cover of The C++ Programming Language, Fourth Edition

Note

Some compiler won't complain, like IAR EWARM 6.67