Boost logo

Boost Users :

From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2006-01-25 16:33:23


Bill Buklis wrote:
>>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.

Right. you might want to put a function in between your code to easy
upgrades.

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

Thanks.

My main motivation was not speed, but design. If what you're modelling
is not shared, but unique, I prefer to use something that models that
explicitly. C++ is a fantastic langauge to design programs in, reason
enough for me to prefer it.

-Thorsten


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