'operation' : unsafe operation: no value of type 'type' promoted to type 'type' can equal the given constant
This message warns against serious errors such as b == 3
, where b
has type bool. The promotion rules cause bool to be promoted to int. This is legal according to the ANSI C++ Working Paper, but it can never be true.