Boost logo

Boost Users :

From: Bill Buklis (boostuser_at_[hidden])
Date: 2006-01-25 11:36:17

> I haven't tried it, but to get an iterator given a reverse iterator,
> one should be able to do
> iterator i( ri.base().base() );
> Looks pretty ugly.

I discovered this myself the other day. It does work. But, as you said it is
quite ugly. Hopefully, I'll be able to get everyone here to upgrade when
this filters through to the next version of boost. But, in the meantime at
least I have something that works.

Thanks. This library is really nice. Greatly simplifies things for me as I
don't need the overhead of shared_ptr for these constructs.

-- Bill --

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Thorsten Ottosen
Sent: Tuesday, January 24, 2006 11:17 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] [ptr_container] Bug in reverse iterators?

Thorsten Ottosen wrote:
> Hi Bill,
> Bill Buklis wrote:
> > Is this a bug or am I expecting it to do something that it shouldn't?
> > Does anyone know a workaround for this (at least temporarily)?
> >
> > Compiler: VC 7.1
> > boost: 1.33.0

The cvs has been updated so reverse_iterators are now defined as usual
in terms of boost::reverse_iterator< iter_type >

Thanks for the report.


Boost-users mailing list

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at