Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 4) C4064

Error Message

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()
{
}

Community Additions

ADD
Show:
© 2014 Microsoft