C++ badly initialized std::set : <p>I have a public variable inside a class, declared as</p>

<pre><code>std::set&lt;int&gt; test;
</code></pre>

<p>and never explicitly initialized. When I try to access it from a shared pointer <code>c</code> of an instance of the object:</p>

<pre><code>std::set&lt;int&gt;&amp; myset = c-&gt;test;
</code></pre>

<p>I see in the debugger that <code>myset</code> is badly initialized: it has both fields <code>_Myhead</code> and <code>_Mysize</code> null. Could you please explain why that happens?</p>
