This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Miscellaneous debug mode fixes
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Douglas Gregor <gregod at cs dot rpi dot edu>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 13 Nov 2003 18:13:47 -0600
- Subject: Re: [PATCH] Miscellaneous debug mode fixes
- Organization: Red Hat / Chicago
- References: <200311131834.12276.gregod@cs.rpi.edu>
>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