[libcxx-commits] [PATCH] D154613: [libc++] Fix std::move algorithm with trivial move-only types

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 6 07:48:40 PDT 2023


ldionne created this revision.
Herald added a project: All.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

As reported in https://reviews.llvm.org/D151953#4472195, the std::move
algorithm (and various other functions that relied on it) stopped working
after starting to use `__constexpr_memmove` in its implementation. This
patch fixes that and adds tests for various related algorithms and
functions that were not exercising trivial move-only types.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154613

Files:
  libcxx/test/std/algorithms/alg.modifying.operations/alg.move/move.pass.cpp
  libcxx/test/std/algorithms/alg.modifying.operations/alg.move/move_backward.pass.cpp
  libcxx/test/std/algorithms/alg.modifying.operations/alg.move/ranges.move.pass.cpp
  libcxx/test/std/algorithms/alg.modifying.operations/alg.move/ranges.move_backward.pass.cpp
  libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp
  libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter_iter.pass.cpp
  libcxx/test/support/MoveOnly.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154613.537729.patch
Type: text/x-patch
Size: 15844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230706/60d39a11/attachment-0001.bin>


More information about the libcxx-commits mailing list