|
Boost Users : |
Subject: Re: [Boost-users] [iterator] [iterator_facade] Why is advance not defined for bidirectional iterators?
From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2011-08-22 07:09:05
Sebastian,
thanks for your answer.
On Mon, Aug 22, 2011 at 11:40 AM, Sebastian Redl <
sebastian.redl_at_[hidden]> wrote:
> On 22.08.2011 10:51, Ovanes Markarian wrote:
>
[...]
>
> This mismatch is why the split of traversal and access categories was
> introduced in Boost.Iterator, but it didn't make it into the new standard,
> and it was never in the old to begin with, so std::advance is not aware of
> it. What you basically need is a traversal-aware std::advance.
>
I will try to fix this with a proper reference type. Or what do you mean
with traversal-aware std::advance? If it is not a part of the current STD
lib, how do I get it? I could also specialize std::advance for my iterator
to work correctly, this would be a potential fix.
[...]
With Kind Regards,
Ovanes
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