This documentation is archived and is not being maintained.
Compiler Warning (level 1) C4145
'expression1' : relational expression as switch expression; possible confusion with 'expression2'
A switch statement uses a relational expression as its control expression, which results in a Boolean value for the case statements. Did you mean expression2?