[libcxx-commits] [PATCH] D62228: Make `vector` unconditionally move elements when exceptions are disabled.

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Sep 5 06:51:22 PDT 2019


ldionne added a comment.

In D62228#1658620 <https://reviews.llvm.org/D62228#1658620>, @rupprecht wrote:

> It looks like this breaks uses of `std::vector` with classes that are copy only (moves disabled): https://godbolt.org/z/ct2GIe
>  gcc/libstdc++ or clang/libc++ w/ exceptions enabled both support it.
>
> Is this breakage intentional?


I don't think this was intentional, and I think your example should be valid. I added the test you provided to the test suite in https://reviews.llvm.org/rCXX371067, and I temporarily reverted this commit in https://reviews.llvm.org/rCXX371068. We can take a look once @EricWF is back from vacation.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62228/new/

https://reviews.llvm.org/D62228





More information about the libcxx-commits mailing list