A, A's use count will be 2. Destruction of the original <a class="link" href="shared_ptr.html" title="Class template shared_ptr">shared_ptr</a> will leave A dangling with a use count of 1. Use <a class="link" href="weak_ptr.html" title="Class template weak_ptr">weak_ptr</a> to "break cycles." </p>
<div class="refsect2">
<a name="id-1.3.18.17.3.52.5.4.6"></a><h3>
<a name="boost.interprocess.shared_ptrconstruct-copy-destruct"></a><code class="computeroutput">shared_ptr</code> 
        public
       construct/