Do not assume allocator is assignable.
authorJonathan Wakely <jwakely@redhat.com>
Tue, 4 Nov 2014 03:41:12 +0000 (03:41 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 4 Nov 2014 03:41:12 +0000 (03:41 +0000)
commitd3cf41899e86a342d3154a38fd9c5c586796ef4b
tree4974da02582417a26cb10fce26993c5ac310bfb8
parent565115eaaf58eeb90dbcb2e6fe25db93342d3048
Do not assume allocator is assignable.

* include/bits/stl_deque.h (_Deque_base(_Deque_base&&)): Copy
allocator instead of moving.
* testsuite/23_containers/deque/allocator/move-2.cc: New.

From-SVN: r217068
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_deque.h
libstdc++-v3/testsuite/23_containers/deque/allocator/move-2.cc [new file with mode: 0644]