|
Boost : |
From: David Abrahams (abrahams_at_[hidden])
Date: 2000-09-01 08:43:33
----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
> 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.
-Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk