[libcxx-commits] [libcxx] [libc++] Make list constexpr as part of P3372R3 (PR #129799)

Peng Liu via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 12 12:23:33 PDT 2025


================
@@ -31,8 +32,19 @@ int main(int, char**) {
   });
   test_sequence_prepend_range_move_only<std::list>();
 
-  test_prepend_range_exception_safety_throwing_copy<std::list>();
-  test_prepend_range_exception_safety_throwing_allocator<std::list, int>();
+  if (!std::is_constant_evaluated()) {
----------------
winner245 wrote:

I've done a grep search in the entire patch, and modified all 5 usages to be `!TEST_IS_CONSTANT_EVALUATED`. 

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


More information about the libcxx-commits mailing list