
4 Sep
2008
4 Sep
'08
3:11 a.m.
AMDG Arno Schödl wrote:
Before spending time working on the problem you posed, I want to make sure than my solution does not get trashed because I use exceptions. If we want to avoid them, I would say that there is no way to get optimal performance with stacked iterators, and I would not even try.
It ought to be possible to propagate a bool up the stack indicating whether the increment just reached the end. In principle, if the compile inlines all the functions, then it ought to be able to avoid any extra boolean test. In Christ, Steven Watanabe