[v3] fix libstdc++/53263
François Dumont
frs.dumont@gmail.com
Wed May 9 21:02:00 GMT 2012
Here is a patch for PR 53263.
I have also generalize the idea of performing checks on unsafe iterators
for better performance to several other debug checks.
2012-05-09 François Dumont <fdumont@gcc.gnu.org>
PR libstdc++/53263
* include/debug/safe_iterator.h (__gnu_debug::__base): Move...
* include/debug/functions.h: ... Here. Add debug function
overloads to perform checks on normal iterators when possible.
* include/debug/macros.h (__glibcxx_check_heap,
__glibcxx_check_heap_pred): Use __gnu_debug::__base on iterator range.
Tested under linux x86_64 debug mode.
Ok for trunk and 4.7 branch ?
François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 53263.patch
Type: text/x-patch
Size: 14059 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20120509/5e83c8a1/attachment.bin>
More information about the Libstdc++
mailing list