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 C2048

more than one default

A switch statement contains multiple default labels. Delete one of the default labels to resolve the error. The following sample generates C2048:

void main() {
   int a = 1;
   switch (a)
    {
      case 1:
         a = 0;
      default:
         a = 2;
      default:   // C2048, delete one default label
         a = 3;
   }
}