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 C2047

illegal default

The keyword default can appear only in a switch statement. The following sample generates C2047:

void main() {
   int i = 0;

   default:      // C2047, delete default to resolve error

   switch(i) {
      case 0:   
      break;

      case 1: 
      break;

      default:   // ok
      break;
   }
}