
3 Sep
2008
3 Sep
'08
7:16 p.m.
Using Arno's suggestion, dereferencing the end iterator ought to throw, which happens before we increment off the end, right?
The *underlying* iterator? How are you going to get that to throw if it's a pointer?
You don't need to. The underlying iterator can check explicitly. Only the adaptors must pass this information up with zero overhead, e.g., by doing nothing. Arno -- Dr. Arno Schoedl · aschoedl@think-cell.com Technical Director think-cell Software GmbH · Invalidenstr. 34 · 10115 Berlin, Germany http://www.think-cell.com · phone +49-30-666473-10 · toll-free (US) +1-800-891-8091 Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl · Amtsgericht Charlottenburg, HRB 85229