[PATCH] Miscellaneous debug mode fixes
Douglas Gregor
gregod@cs.rpi.edu
Thu Nov 13 23:33:00 GMT 2003
Here are the (minor) debug mode fixes I promised. I know of no other bugs in
the implementation, but I'm sure we'll find some :)
Tested on i686-pc-linux-gnu; no regressions in the libstdc++ test suite in
either debug or release mode. The new test case bits falied before, but pass
now.
Doug
2003-11-13 Douglas Gregor <gregod@cs.rpi.edu>
* docs/html/debug.html: Users are allowed to specialize in
namespace __gnu_debug, unlike in the Apple version of the debug
mode. Clear up a confusing double-negative. Note that
std::basic_string does provide extra debugging capabilities, but
not safe iterators.
* include/bits/basic_string.tcc: Make sure there's never an
ambiguity when calling __is_null_pointer.
* include/debug/deque: (deque::erase) Properly handle invalidation
when erasing at the end of the deque.
* include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
(vector::clear): Set the guaranteed capacity to 0.
* testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
iterator invalidation when erasing at the end of the deque.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug-mode-fixes.patch
Type: text/x-diff
Size: 4826 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20031113/8eeba7c2/attachment.bin>
More information about the Libstdc++
mailing list