nested classes and references to outside classes (c++)
<p>This is quite straightforward - gcc fails to to compile this sample code (c++).</p>

<pre><code>class myclass {
    struct mystruct {
     myclass something;
     int something_else;
    };
};
</code></pre>

<p>It tells me, that</p>

<blockquote>
  <p>Field 'something' has incomplete type.</p>
</blockquote>

<p>I probably miss something trivial, because I'm quite new in c++, but why can't I make nested class/struct with references to outside class?</p>
