title: using enum says invalid conversion from 'int' to 'type'
body: <p>In my class I defined an enum like this:</p>
  
  <pre><code>class myClass 
  {
   public:
      enum access {
        forL,
        forM,
        forA
      };
      typedef access AccessType;
      AccessType aType;
  };
  </code></pre>
  
  <p>Later in defined an object like this:</p>
  
  <pre><code>myClass ob;
  ob-&gt;aType = 0;
  </code></pre>
  
  <p>However I get this error:</p>
  
  <pre>
  error: invalid conversion from 'int' to 'myClass::AccessType {aka myClass::access}' [-fpermissive]
  </pre>
  
  <p>Don't enum fields map to integers?</p>