[libcxx-commits] [PATCH] D74251: [libc++] Make sure that vector copy-construction is disabled for non-copyable types

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 11 08:10:58 PST 2020


ldionne accepted this revision.
ldionne marked an inline comment as done.
ldionne added inline comments.
This revision is now accepted and ready to land.


================
Comment at: libcxx/test/std/containers/sequences/vector/vector.cons/copy.move_only.fail.cpp:26
+    std::vector<move_only> v;
+    std::vector<move_only> copy = v; // expected-error at memory:* {{call to implicitly-deleted copy constructor of 'move_only'}}
+    return 0;
----------------
Note that previously, this test case would fail (i.e. we could copy a vector containing a move only type).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74251





More information about the libcxx-commits mailing list