[libcxx-commits] [libcxx] [libc++]libcxx constexpr deque (PR #200929)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Wed Sep 2 23:06:21 PDT 2026


================
@@ -99,7 +101,22 @@ void self_reference_test() {
   }
 }
 
+#if TEST_STD_VER >= 26
+constexpr bool test() {
+  std::deque<int> d = {1, 3};
+  auto it           = d.insert(d.begin() + 1, 2);
----------------
frederick-vs-ja wrote:

I'd say this is testing the overload for rvalue. I'll copy this case and that in `insert_rvalue.pass.cpp‎` with fixes for now.

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


More information about the libcxx-commits mailing list