Boost logo

Boost :

From: Kevlin Henney (kevlin_at_[hidden])
Date: 2000-09-01 09:12:30


In message <016701c0141a$940da000$480524d4_at_pdimov>, Peter Dimov
<pdimov_at_[hidden]> writes
>> 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.

<sound of can of worms opening>

>:->
____________________________________________________________

  Kevlin Henney phone: +44 117 942 2990
  Curbralan Ltd mobile: +44 7801 073 508
  kevlin_at_[hidden] fax: +44 870 052 2289
____________________________________________________________


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