This is the mail archive of the
libstdc++-cvs@gcc.gnu.org
mailing list for the libstdc++ project.
r196571 - in /branches/gcc-4_7-branch/libstdc++...
- From: fdumont at gcc dot gnu dot org
- To: libstdc++-cvs at gcc dot gnu dot org
- Date: Sat, 09 Mar 2013 10:09:52 -0000
- Subject: r196571 - in /branches/gcc-4_7-branch/libstdc++...
Author: fdumont
Date: Sat Mar 9 10:09:51 2013
New Revision: 196571
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196571
Log:
2013-03-09 FranÃois Dumont <fdumont@gcc.gnu.org>
* include/bits/vector.tcc (vector<>operator=(const vector<>&):
Reset pointers after deallocation when memory can be reused.
* testsuite/23_containers/vector/allocator/minimal.cc: Insert
elements to really challenge C++11 allocator integration.
* testsuite/23_containers/vector/allocator/copy.cc: Likewise.
* testsuite/23_containers/vector/allocator/copy_assign.cc:
Likewise.
* testsuite/23_containers/vector/allocator/move_assign.cc:
Likewise.
* testsuite/23_containers/vector/allocator/swap.cc: Likewise and
swap vector back before checks on memory/personality mapping are
performed.
Modified:
branches/gcc-4_7-branch/libstdc++-v3/ChangeLog
branches/gcc-4_7-branch/libstdc++-v3/include/bits/vector.tcc
branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/vector/allocator/copy.cc
branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/vector/allocator/copy_assign.cc
branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/vector/allocator/minimal.cc
branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/vector/allocator/move_assign.cc
branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/vector/allocator/swap.cc