Boost logo

Boost Users :

From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2007-11-21 16:30:37


On 21/11/2007, chun ping wang <cablepuff_at_[hidden]> wrote:
> Hi, since ptr_vector are non copyable, how would i got baout making
> assignment from one ptr_vector to another..
>
> i.e. ptr_vector<Foo> t;
> ptr_vector<Foo> t2;
> // some coding.
> t = t2;

.assign with an iterator range, perhaps?

And IIRC the new version of ptr_containers will have (already has?)
operator= defined so your code above would work. (With the expected,
fairly expensive, semantics.)

~ Scott


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net