NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2050

switch expression not integral

The switch expression evaluates to a noninteger value. To resolve the error, use only integral values in switch statements. The following sample generates C2050:

void main() {

   int a = 1;

   switch ("a") {   // C2050
   // try ..
   // switch (a) {
      case 1:
         a = 0;
      default:
         a = 2;
   }
}