The Standard requires the value_type of the vector to be Cpp17CopyInsertable
in order for copy-construction to be enabled:
http://eel.is/c++draft/container.requirements#tab:container.req
rdar://problem/56674564
Differential D74251
[libc++] Make sure that vector copy-construction is disabled for non-copyable types ldionne on Feb 7 2020, 12:29 PM. Authored by
Details The Standard requires the value_type of the vector to be Cpp17CopyInsertable http://eel.is/c++draft/container.requirements#tab:container.req rdar://problem/56674564
Diff Detail
Event TimelineComment Actions Arthur, this is in response to your comment here: https://reviews.llvm.org/D48342?id=154327#inline-491356
|
Note that previously, this test case would fail (i.e. we could copy a vector containing a move only type).