title: Equivalent of "using namespace X" for scoped enumerations?
body: <p>I am using a scoped enum to enumerate states in some state machine that I'm implementing. For example, let's say something like:</p>
  
  <pre><code>enum class CatState
  {
      sleeping,
      napping,
      resting
  };
  </code></pre>
  
  <p>In my cpp file where I define a state transition table, I would like to use something equivalent to <code>using namespace X</code> so that I don't need to prefix all my state names with <code>CatState::</code>. In other words, I'd like to use <code>sleeping</code> instead of <code>CatState::sleeping</code>. My transition table has quite a few columns, so avoiding the <code>CatState::</code> prefix would keep things more compact and readable.</p>
  
  <p>So, is there a way to avoid having to type <code>CatState::</code> all the time?</p>
  
  <hr>
  
  <p><sup>Yeah, yeah, I'm already aware of the pitfalls of <code>using namespace</code>. If there's an equivalent for strongly-typed enums, I promise to only use it inside a limited scope in my cpp implementation file, and not for evil.</sup></p>