Alfredo Braunstein wrote:
Abdelrazak Younes wrote:
Well it is supposed to be const_iterator semantics... You can get one
from a const container, but dereferencing it gives you a const element
reference.
I got that but the two iterators don't seem to iterate identically,
might just be a bad 'tainted' impression ;-)
Must be... both should use DocIterator::forwardPar, no?
I guess. I think the main problem is the incompatibility between both
types; some methods exists in one, but not the other and you cannot
easily convert between the two. But as I said, I did not try very hard
to use them due to my initial bad opinion.
I agree. But note that the point here is that there may be some uses of a
real iterator (you can use generic algorithms). Dunno if this is really
used in the code though.
Stl algorithms do not work well with those IIRC.
Details?
IIRC, the problem was that operator--() and operator<() was not working
when I was working with the TocBackend. But this was a long time ago and
I did not understand those things very well at the time, so the
situation might have change since then.
Abdel.