Subject: Re: [boost] [iterator] UB when implicitly using default constructed counting_iterator<unsigned>
From: Claas H. Köhler (claas.koehler_at_[hidden])
Date: 2012-12-05 08:40:32
On 05/12/12 14:18, "Claas H. Köhler" wrote:
> On 05/12/12 13:48, Olaf van der Spek wrote:
>> Did you try to enable iterator debugging?
> Good point. Originally no. But I retried replacing <vector> by <debug/vector> and accordingly for the
> other container #includes and there is no difference in output nor asserts.
Update: When using the -D_GLIBCXX_DEBUG flag, the code indeed asserts with the following message:
"attempt to compare a singular iterator to a singular iterator"
I guess this also means, that it is possible to detect singular iterators even if they are
initialised upon default construction.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk