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