$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [ptr_container] Transferring the Last Element from a ptr_vector
From: Charles Brockman (cmbrockman_at_[hidden])
Date: 2009-09-07 11:59:11
Thorsten Ottosen wrote:
> You can't use reverse iterators in transfer.
Thank you, Thorsten. I'll create an iterator to the last element and use
that in the transfer.
GeneVectType::iterator othEndIter = other->geneVect.end();
--othEndIter;
geneVect.transfer(geneVect.begin(), othEndIter, other->geneVect);
-- Charles