Boost logo

Boost Users :

From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2007-03-19 09:39:08


-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Vaclav
Sent: Monday, March 19, 2007 5:42 AM
To: boost-users_at_[hidden]
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?


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