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@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/