19 Mar
2005
19 Mar
'05
2:55 p.m.
I want to implement my own iterator as single pass traversal with reference type value& (a genuine reference). My problem is, that the iterator facade concludes from the single pass traversal, that this is an input/output iterator and those are generelly subject to a postfix increment proxy. That is, writing *iter++ = some_value; doesn't really do anything but changing a temporary value in the proxy. In addition to this, iter++ == iter would't find a suited overload, which seems to be a bug. Chancing the traversal tag to forward traversal works correct, but that's not really what I want to do. I want my iterator to be single pass since I don't support the i == j => ++i == ++j requirement. Jens