Boost logo

Boost Users :

Subject: Re: [Boost-users] [ptr_container] Transferring the Last Element from a ptr_vector
From: Nat Goodspeed (nat_at_[hidden])
Date: 2009-09-10 10:41:11


Sebastian Theophil wrote:

> Internally, the boost::reverse_iterator you propose also has to
> decrement, so it doesn't work any better. Additionally, your proposed
> solution crashes because other->geneVect.rbegin().base() returns in fact
> other->geneVect.end(). Only *other->geneVect.rbegin() returns
> *(other->geneVect.end()-1).

Thanks, Steven and Sebastian. I've learned something today.


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