Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 1) C4806 (Windows CE 5.0)

Windows CE 5.0
Send Feedback

'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.


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft