[PATCH] Miscellaneous debug mode fixes

Benjamin Kosnik bkoz@redhat.com
Fri Nov 14 00:15: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 :)

No doubt.

>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.

Excellent, thanks.

>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.

This is in.

-benjamin



More information about the Libstdc++ mailing list