[libcxx-commits] [libcxx] [libc++] constexpr `flat_set` (PR #140360)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 4 10:47:05 PDT 2025


================
@@ -38,15 +38,23 @@ void test_one() {
   assert(m.empty());
 }
 
-void test() {
+constexpr bool test() {
   test_one<std::vector<int>>();
-  test_one<std::deque<int>>();
+#ifndef __cpp_lib_constexpr_deque
+  if (!std::is_constant_evaluated())
----------------
ldionne wrote:

Here and everywhere else, let's use `TEST_IS_CONSTANT_EVALUATED`.

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


More information about the libcxx-commits mailing list