title: C++ Namespace 'using' declarative for a class' enum
body: <p>I have a good understanding of how the C++ 'using' declaration and directive work. However, I'm stumped on this... Maybe it's not possible? I want to avoid having to quality my enum variables:</p>
  
  <pre><code>namespace Foo { 
     class MyClass {
        public: 
           enum MyEnum { X, Y, Z };
     }
  }
  </code></pre>
  
  <p>And now, from outside that namespace, I would like to be able to do things like:</p>
  
  <pre><code>using Foo::MyClass.MyEnum;
  MyEnum letter = MyEnum::x;
  </code></pre>
  
  <p>But apparently that's not the way to do it? I'm betting this is possible, but my notation is wrong... I also tried using Foo::MyClass::MyEnum, but then the compiler thinks Foo::MyClass is a namespace.</p>
  
  <p><strong>Added: As you can see, it becomes annoying having to fully declare everything...</strong></p>
  
  <pre><code>Foo::MyClass::MyEnum value = Foo::MyClass::X;
  </code></pre>