title: Initialize enum c++
body: <p>I create an enum called <code>Types</code>:  </p>
  
  <pre><code>enum  Types {Int,Double,String};  
  </code></pre>
  
  <p>When I create an object and initialize it with one of the enum allowed values I get the following error: "Error: type name is not allowed". </p>
  
  <pre><code>Types ty = Types.Double;  
  </code></pre>
  
  <p>Any ideas?</p>