
5 Dec
2012
5 Dec
'12
8:48 a.m.
On Wed, Dec 5, 2012 at 8:53 AM, "Claas H. Köhler" <claas.koehler@dlr.de> wrote:
To be very precise, it was actually the assumption that counting_iterator behaves similar to all other iterators in the standard library, which guarantee a defined behaviour when default constructed. (By guaranteed I mean as far as I have seen so far. Not sure what the standard says about them)
AFAIK you can't expect default constructed iterators to be usable (in general). For example, this will assert in VC11: typedef std::map<int, int> C; C::iterator a; C::iterator b; a == b; Olaf