Leave moved-from std::deque in a valid state
authorJonathan Wakely <jwakely@redhat.com>
Thu, 24 Sep 2015 15:46:24 +0000 (16:46 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 24 Sep 2015 15:46:24 +0000 (16:46 +0100)
commit9bc5028273e55ced2622bb5aafa9a70cde7003b7
treefb1da80c898e322f44ac7a772516ad08e0aa4292
parent4f761179ed60c76164ba5a07f656015b3698734f
Leave moved-from std::deque in a valid state

PR libstdc++/67707
* include/bits/stl_deque.h (_Deque_base::_M_move_impl): Initialize
empty object.
* testsuite/23_containers/deque/allocator/move.cc: Check moved-from
deque.

From-SVN: r228090
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_deque.h
libstdc++-v3/testsuite/23_containers/deque/allocator/move.cc