title: Export part of the namespace of a class
body: <p>I have a class that includes an <code>enum</code>:</p>
  
  <pre><code>class appearance{
    // ... stuff ...
    enum color {BLUE, RED, GREEN};
  };
  </code></pre>
  
  <p>I would like to attach part of the namespace (with <code>using</code>) so that I can refer to the value of the <code>BLUE</code> simply as <code>BLUE</code>, rather than <code>appearance::BLUE</code>. At the same time, I would like to keep the <code>enum</code> within the <code>class{}</code>, since I think that is most natural. I have tried various combinations of <code>namespace</code> and <code>using</code>, but to no avail. </p>
  
  <p>Any suggestions ???</p>