[patch] Apply DR434 resolution to <debug/bitset>
Paolo Carlini
pcarlini@suse.de
Fri May 6 10:50:00 GMT 2005
Paolo Carlini wrote:
>I think something simpler would also do, since there is only *one*
>occurrence, right?
>Right in operator[]:
>
> #ifdef _GLIBCXX_DEBUG_PEDANTIC
> _GLIBCXX_DEBUG_ASSERT(__pos < size())
> #else
> _GLIBCXX_DEBUG_ASSERT(__pos <= size())
> #endif
>
>
Ah, if you could provide kind of a summary of the tests that currently
are failing in debug mode, would be great! I have trouble figuring out
the best solution, missing that info. Maybe we are going to add
additional macros in debug.h, no idea, right now...
Paolo.
More information about the Libstdc++
mailing list