There are two conflicting definitions of enum class in Visual C++ 2012:
enumSystem::Enum derived type, equivalent to a ref class with static const integral members.Does the meaning of enum class change when you enable or disable the /clr switch?
A managed enumeration must have an access specifier (either public or private). A C++11 scoped enumeration must not have an access specifier. For example,
enum class E { e0 };
public enum class F { f0 };
private enum class G { g0 };
E is valid in C++, C++/CLI, and C++/CX, and it is an ordinary C++ scoped enumeration.
F and G are valid only in C++/CLI and C++/CX, and they name a managed enumeration (in C++/CLI) or a Windows Runtime enumeration (in C++/CX).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With