title: C++: X does not name a type, while using typedef
body: <p>I have the following code:</p>
  
  <p>"Class1.h"</p>
  
  <pre><code>class Class1{
  public:
      typedef boost::multi_array&lt;double, 3&gt; integral_image;
  };
  </code></pre>
  
  <p>"exampleStruct.h"</p>
  
  <pre><code>#include "Class1.h"
  struct s{
      typedef Class1::integral_image integral_image;
      integral_image a;
  };
  </code></pre>
  
  <p>I get the following error: "Class1 does not name a type" but have no idea why?</p>