This documentation is archived and is not being maintained.

Compiler Warning (level 4) C4064

switch of incomplete enum 'enumeration'

A switch statement specifies a selector of an enumerated type that is not defined.

The following sample generates C4064:

// C4064.cpp
// compile with: /W4
enum E;
void func ( E e )
{
   switch(e)
   {
   case 7:
   break;  // define members for E to resolve
   }   // C4064
}

int main()
{
}
Show: