
20 Jul
2004
20 Jul
'04
11:09 a.m.
"John Maddock" <john@johnmaddock.co.uk> writes:
You cannot compare a singular iterator with another iterator (not even another singular one), *unless* the particular iterator type has some implementation-defined behaviour specified for that particular type.
Nit: there are no exceptions for singular iterators. In the case you're describing, the iterator is simply not singular. There's no rule that says a default-constructed iterator must be singular. Cheers, -- Dave Abrahams Boost Consulting http://www.boost-consulting.com