This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] Apply DR434 resolution to <debug/bitset>
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.