title: enum class of type string in C++
body: <p><strong>- Background Information:</strong></p>
  
  <p>There is a class in C++11 known as enum class which you can store variables inside. However, I have only seen the type of the class to be char:</p>
  
  <pre><code>enum class : char {
     v1 = 'x', v2 = 'y'
  };
  </code></pre>
  
  <hr>
  
  <p><strong>- Question:</strong></p>
  
  <p>Is there any way I can express this enum class of type string?</p>
  
  <p>For example,</p>
  
  <pre><code>enum class : string{
    v1 = "x", v2 = "y"
  };
  </code></pre>
  
  <hr>
  
  <p><strong>- What I think:</strong></p>
  
  <p>I tried using it, but I got errors, I am not sure if I am doing it right or not. The reason why I want to use strings is that they are capable of holding multiple characters at the same time, so it makes them more useful for my code.</p>