[libcxx-commits] [libcxx] [libc++] Assert preconditions of operator= of containers (PR #129625)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 10 21:37:13 PDT 2025


================
@@ -0,0 +1,31 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// Make sure that a std::map containing move-only types can't be copy-assigned.
+
+// UNSUPPORTED: c++03
----------------
halbi2 wrote:

So you know, I copied this from `vector/vector.cons/copy.move_only.verify.cpp` which has the lines in that order.

https://github.com/llvm/llvm-project/pull/129625


More information about the libcxx-commits mailing list