[libcxx-commits] [libcxx] [libc++] Fix {deque, vector}::append_range assuming too much about the types (PR #162438)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Oct 8 07:48:12 PDT 2025
================
@@ -643,6 +643,42 @@ constexpr void test_sequence_assign_range_move_only() {
c.assign_range(in);
}
+struct InPlaceOnly {
+ InPlaceOnly(const InPlaceOnly&) = delete;
+ InPlaceOnly(InPlaceOnly&&) = delete;
+ InPlaceOnly& operator=(const InPlaceOnly&) = delete;
+ InPlaceOnly& operator=(InPlaceOnly&&) = delete;
+ constexpr InPlaceOnly() {}
----------------
ldionne wrote:
Can we move this first? I read this as a conversion operator -- usually default constructors come first.
https://github.com/llvm/llvm-project/pull/162438
More information about the libcxx-commits
mailing list