Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2000-09-01 08:43:12


> > ref<> supports my vision that 'new' and 'delete' have no place in user
> code.
> > The only place where I was forced to use 'new' was to manage containers
of
> > polymorphic objects, so I decided to eliminate it.
>
> How do you make a vector of polymorphic objects such that insertion
doesn't
> cause lots of unneccessary copying? I don't think a cloning smart pointer
> fits that bill.

I was thinking of making ref<T> reference counted. The non-const methods
would clone on demand.

--
Peter Dimov
Multi Media Ltd.

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