[google][4.8] Add more inexpensive debug checks to vector, bitvector, deque
François Dumont
frs.dumont@gmail.com
Mon Jan 6 20:43:00 GMT 2014
Hello
For my information, all those checks are already done in gcc
_GLIBCXX_DEBUG mode, why duplicating those in normal mode with a
dedicated macro ? Is it that you only want to keep debug checks that
have a constant time cost ?
I am interested because I plan to do some enhancements to the debug
mode and I could consider your needs in this context.
Thanks
FrançoisOn 01/06/2014 05:46 PM, Paul Pluzhnikov wrote:
> Greetings,
>
> For Google b/9127283, I've committed attached patch on google/gcc-4_8 branch.
>
> Related: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56109
>
> This caught ~10 bugs for us. erase(end()) and pop_back() on empty
> vector appear to be most common.
>
More information about the Libstdc++
mailing list