'type' : illegal type for managed enum underlying type
The underlying type you specified for the enum type was not valid. The underlying type must be an integral C++ type or a corresponding Managed Extensions for C++ type.
The following sample generates C3168:
#using <mscorlib.dll> __gc class G { }; __value enum E : G {e}; // C3168 // use the line below to resolve the error // __value enum E {e}; void main() { }