How can I force all enums to have their own namespace?
I have multiple enums with members that have the same name, and want them to be accessed through the enum namespace,
for example
enum X {b, a};
enum Y {a, b};
The above code won't compile because a is either X::a or Y::a
How can I make it so that a can never be used unless the client specifies X::A or Y::A, so it compiles?