Compiler Error C3062
'enum': enumerator requires value since the underlying type is 'type'
You can specify an underlying type for an enumeration. However, some types require you to assign values to each enumerator.
For more information on enums, see enum class.
The following sample generates C3062:
// C3062.cpp
// compile with: /clr
enum class MyEnum : bool { a }; // C3062
enum class MyEnum2 : bool { a = true}; // OK
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for