debug shrink_to_fit
François Dumont
francois.cppdevs@free.fr
Tue Jun 7 19:54:00 GMT 2011
Hi
I noticed that containers having the shrink_to_fit method had no
debug implementation of this method leaving iterators potentially
invalidated by a shrink_to_fit call undetected:
2011-06-07 François Dumont <francois.cppdevs@free.fr>
* include/debug/vector, deque, string: Add shrink_to_fit debug
implementation.
* testsuite/23_containers/vector/debug/shrink_to_fit.cc: New.
* testsuite/23_containers/deque/debug/shrink_to_fit.cc: New.
* testsuite/21_string/debug/shrink_to_fit.cc: New.
Ok to commit ?
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shrink_to_fit.patch
Type: text/x-patch
Size: 6706 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20110607/c8604ca8/attachment.bin>
More information about the Libstdc++
mailing list