Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning (level 1) C4144

Error Message

'expression' : relational expression as switch expression

The specified relational expression was used as the control expression of a switch statement. The associated case statements will be offered Boolean values. The following sample generates C4144:

// C4144.cpp
// compile with: /W1
int main()
   int i = 0;
   switch(!i) {   // C4144, remove the ! to resolve
      case 1:

Community Additions

© 2015 Microsoft