Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2000-03-13 18:36:46


> Am I missing something? I use scoped_ptrs (something very much like
> them, really) in non-copyable objects all the time. They
> automatically go away when the object does, which is quite handy, as
> well as the most useful case for adding the "qualified" option. Am I
> missing something about scoped_ptr that makes it unsuitqable for
> non-copyable objects?

My mistake. Naturally, scoped_ptr members are fine for non-copyable objects.
What I said about shared_ptr still makes sense though.

    -- Darin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk