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

Peng Liu via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 11 07:07:42 PDT 2025


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

I used `std::is_constant_evaluated` because this test `append_range.pass.cpp` is only run for `>= C++20`. As you commented, I've changed it to `TEST_IS_CONSTANT_EVALUATED ` for consistency. 

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


More information about the libcxx-commits mailing list