Boost logo

Boost Users :

From: Jens Theisen (jens.theisen_at_[hidden])
Date: 2005-03-19 09:55:51


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


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