Suppose you have a class with an enum defined within it:
class MyClass {
typedef enum _MyEnum{ a } MyEnum;
}
Is there a way to access the value a from another class without having to refer to it as MyClass::a? If the enum were contained within a namespace rather than a class, than "using namespace ;" solves the problem - is there an equivalent way to do this with classes?