Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Warning (level 1) C4808
Collapse the table of content
Expand the table of content

Compiler Warning (level 1) C4808

Error Message

case 'value' is not a valid value for switch condition of type 'bool'

This warning occurs if a switch condition is of type bool and one of the case values is outside the range of bool (that is, true and false). Only true, false, 1, 0, and default are valid case values if the switch condition is of type bool.

Community Additions

ADD
Show:
© 2015 Microsoft