Abstract class member variable
<p>I have an abstract class, <code>CAbstract</code>, and want to have a member of this type in another class, <code>CClass</code>. If I make it a pointer, I will have to take care of the deleting myself, and do would like to avoid this.</p>

<ul>
<li>If I make it a reference, will it get deleted automatically when the <code>CClass</code> gets deleted?</li>
<li>Can I make it a <code>shared_ptr</code>? Can <code>shared_ptr</code> manage abstract classes and pointing to derived classes?</li>
</ul>
