sorry it should have been
std::copy(A.begin(), A.end(), std::back_inserter(B.begin()));

On Jan 24, 2008 5:14 AM, chun ping wang <cablepuff@gmail.com > wrote:

boost::ptr_vector<Plant> A;   // pointer to vector of Animal
// fill in A.
boost::ptr_vector<Plant> B;   // pointer to vector of Animal

std::copy(A.begin(), A.end(), B.begin());  // it does not neccessary have to be copy, any algorithm requiring an output iterator would be fine.

On Jan 24, 2008 2:25 AM, Thorsten Ottosen <thorsten.ottosen@dezide.com> wrote:
chun ping wang skrev:
> hmm k so which header(s) file will change?

I expect this to be new header files.

In the eman time, can you post your envisioned usage example?

Thanks

-Thorsten

> On Jan 21, 2008 12:57 PM, Thorsten Ottosen <thorsten.ottosen@dezide.com
> <mailto: thorsten.ottosen@dezide.com>> wrote:
>
>     chun ping wang skrev:
>      > Hi, is their going to be an overload for ptr_container to be able to
>      > work well with back_insert_iterator, front_insert_iterator and
>      > insert_iterator. Like i can copy from ptrVectorA to ptrVectorB
>     without
>      > worrying about the range of ptrVectorB.
>
>     It's too late for 1.35, but I will think about adding them to the trunk.
>
>     -Thorsten
>     _______________________________________________
>     Boost-users mailing list
>     Boost-users@lists.boost.org <mailto:Boost-users@lists.boost.org>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users