Boost logo

Boost Users :

From: Russell Hind (yg-boost-users_at_[hidden])
Date: 2003-04-15 02:26:16


AFAIK, it is for circle-of-reference problems. If two objects have a
shared_ptr to each other, they won't get deleted. If one has a weak_ptr
to the other, then hopefully things should work out, but you probably
have to be careful (Haven't actually used a weak_ptr yet, but may need to).

Cheers

Russell

Edward Diener wrote:
> I don't understand what the practical use of Boost weak_ptr<> is ? Anyone
> like to clue me in ? I understand that Boost weak_ptr<> creates an internal
> reference to a Boost shared_ptr<> but I don't understand what that is
> supposed to accomplish.
>
>
>
>
>
> Info: <http://www.boost.org>
> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
> Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net