$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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
____________________________________________________________