allocator.h (__shrink_to_fit_aux::_S_do_it): Create the new object with the same...
authorJonathan Wakely <jwakely.gcc@gmail.com>
Wed, 9 Nov 2011 21:14:03 +0000 (21:14 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 9 Nov 2011 21:14:03 +0000 (21:14 +0000)
commit5ed56cbbee96b41fa9ef743c48245096d84205b7
tree8c75f00fd0fc61e236df531630752c1eab7a8d8f
parente14304eff546e4ef3dc33e6439d793f999e81c91
allocator.h (__shrink_to_fit_aux::_S_do_it): Create the new object with the same allocator.

* include/bits/allocator.h (__shrink_to_fit_aux::_S_do_it): Create
the new object with the same allocator.
* testsuite/23_containers/vector/capacity/shrink_to_fit2.cc: New.

From-SVN: r181235
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/allocator.h
libstdc++-v3/testsuite/23_containers/vector/capacity/shrink_to_fit2.cc [new file with mode: 0644]