Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
cannot define an unmanaged enum 'enum' inside managed 'type'
An enumeration was defined incorrectly inside a managed type.
The following sample generates C3277:
// C3277a.cpp
// compile with: /clr
ref class A
{
enum E {e1,e2}; // C3277
// try the following line instead
// enum class E {e1,e2};
};
int main()
{
}