pointers to derived members of the class
<p>if I have for example some  class <code>Base</code> and derived from it <code>Derived</code>
Also I have some list of shared pointers:</p>

<pre><code>list&lt;shared_ptr&lt;Base&gt; &gt; list
</code></pre>

<p>I create shared pointer:</p>

<pre><code>line 5    shared_ptr&lt;Derived&gt; ptr(new Derived(//some constructor));
</code></pre>

<p>my question is, can I do something like this:</p>

<pre><code>list.push_back(ptr);
</code></pre>

<p>if Yes, can somebody explain why can I recieve an error (I receive this on the line 5)</p>

<pre><code>no matching function for call to //here It writes me my constructor to Derived
</code></pre>

<p>thanks in advance for any help</p>
