<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Both s1 and s2 should now have use_count of 2 at this point, since there<br>
are 2 shared_ptrs sharing ownership of the same pointee.<br>
<br>
The post-condition expression is correct; the value of r.use_count()<br>
was changed by the construction of the new shared_ptr.</blockquote><div></div><div>Thanks for your reply. So you&#39;re saying that the behavior of shared_ptr is correct (perfectly fine with me). But then I have to say, that the documentation of shared_ptr located under</div>
<div><a href="http://www.boost.org/doc/libs/1_39_0/libs/smart_ptr/shared_ptr.htm#constructors">http://www.boost.org/doc/libs/1_39_0/libs/smart_ptr/shared_ptr.htm#constructors</a></div><div>is wrong, because it says that if you construct a shared_ptr from a weak_ptr (!) the use_count will *not* change.</div>

