On 8/18/06, <b class="gmail_sendername">Scott Meyers</b> &lt;<a href="mailto:usenet@aristeia.com">usenet@aristeia.com</a>&gt; wrote:&nbsp;<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
... If A uses a<br>shared_ptr to B and B uses a weak_ptr to A, B's life will be shorter than A's<br>(its destructor will be invoked from A's destructor and will run to completion<br>before A's does), so there is no advantage to a weak_ptr being able to tell if
<br>it dangles.</blockquote><div><br>I may also be missing some context here, however I think the fact that we're using a shared_ptr to B (instead of a scoped_ptr) indicates that we're not guaranteed to be the only ones w/ a shared_ptr to B, in which case we can't guarantee that B's life will be shorter than A's.
<br><br>Jon<br></div></div>

