Boost logo

Boost :

From: Schoenborn, Oliver (Oliver.Schoenborn_at_[hidden])
Date: 2003-07-01 19:21:14


> On Tuesday, Jul 1, 2003, at 17:36 America/Denver, Schoenborn, Oliver
> wrote:
> >>
> >> On Tuesday, Jul 1, 2003, at 14:38 America/Denver, Boost wrote:
> >>
> >>> Why is there no strict-ownership smart-pointer in boost?
> >>> Just curious to know what the reasons are. Thanks,
> >>
> >> What do want beyond what boost::scoped_ptr and
> >> std::auto_ptr provide?
> >
> > Ability to be used in STL containers, and explicit transfer of
> > ownership capabilities (e.g. *no* move-on-copy etc).
>
> So what would the copy semantics be?

No copy allowed, except temporarily when inside the container to insert or
re-order or transfer from one container to another.
Oliver


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