19 Mar
2007
19 Mar
'07
1:39 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Vaclav Sent: Monday, March 19, 2007 5:42 AM To: boost-users@lists.boost.org Subject: [Boost-users] which type of smart pointer to use? When I am done with an object, I would reset the main pointer to it and do not want other references to that object to be able to do anything with it. [Nat] Would it work for you to use (e.g.) shared_ptr for the main pointer and weak_ptr for every other reference?