I need strong enumeration types. C ++ 0x has this feature, but unfortunately they also require an explicit review:
enum class E {e1, e2, e3};
E x = E::e1;
E y = e1;
Sometimes it’s desirable, but sometimes it’s just too detailed. Identifiers can be quite unique in themselves, or an enumeration can already be nested inside a class or namespace.
So I'm looking for a workaround. What would be the best way to declare enum values in an environment?
source
share