Boost logo

Boost :

From: Andrew D Jewell (ajewell_at_[hidden])
Date: 2000-03-13 18:18:18


>In the case of scoped_ptr, it's not useful to have it as a member of an
>object in the first place, so how it behaves as a member of a const object
>seems irrelevant.

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?

Andy Jewell


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