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 Warning (level 3) C4062

enumerate 'identifier' in switch of enum 'enumeration' is not handled

The enumerate has no associated handler in a switch statement, and there is no default label.

This warning is off by default. To turn it on, use the warning pragma:

#pragma warning(default : 4062)

Example

enum E { a, b, c };
void func ( E e )
{
   switch(e)
   {
   case a:
   case b:
      break;    // no default label
   }            // warning, enumerate 'c' not handled
}