LWG2593 Move from allocator state is preserved
François Dumont
frs.dumont@gmail.com
Thu May 16 05:48:00 GMT 2019
Hi
   Let's apply this resolution first before moving forward with the
std::deque implementation.
   Move from state of allocators (LWG2593)
   * include/bits/stl_deque.h
   (_Deque_base(_Deque_base&&, false_type)): Remove.
   (_Deque_base(_Deque_base&&, true_type)): Remove.
   (_Deque_base(_Deque_base&&)): Adapt.
   (_Deque_base::_M_move_impl()): Remove.
   * testsuite/util/testsuite_allocator.h
   (propagating_allocator(propagating_allocator&&)): Preserve move from
   state.
   * testsuite/23_containers/deque/allocator/move_assign.cc (test02):
   Adapt.
   * testsuite/23_containers/forward_list/allocator/move_assign.cc
(test02):
   Adapt.
   * testsuite/23_containers/list/allocator/move_assign.cc (test02):
Adapt.
   * testsuite/23_containers/map/allocator/move_assign.cc (test02): Adapt.
   * testsuite/23_containers/multimap/allocator/move_assign.cc (test02):
   Adapt.
   * testsuite/23_containers/multiset/allocator/move_assign.cc (test02):
   Adapt.
   * testsuite/23_containers/set/allocator/move_assign.cc (test02): Adapt.
   * testsuite/23_containers/unordered_map/allocator/move_assign.cc
   (test02): Adapt.
   * testsuite/23_containers/unordered_multimap/allocator/move_assign.cc
   (test02): Adapt.
   * testsuite/23_containers/unordered_multiset/allocator/move_assign.cc
   (test02): Adapt.
   * testsuite/23_containers/unordered_set/allocator/move_assign.cc
   (test02): Adapt.
   * testsuite/23_containers/vector/allocator/move_assign.cc (test02):
   Adapt.
   * testsuite/23_containers/vector/bool/allocator/move_assign.cc
(test02):
   Adapt.
I only run 23_containers tests with success so far, I'll complete the
run before committing.
Ok to commit ?
François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lwg2593.patch
Type: text/x-patch
Size: 11130 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20190516/2a5e57e8/attachment.bin>
More information about the Libstdc++
mailing list