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

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


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.


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