[libcxx-commits] [libcxx] [libc++] Implement part of P2562R1: constexpr `std::inplace_merge` (PR #129008)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 5 09:51:46 PST 2025


================
@@ -41,14 +41,17 @@ struct binary_counting_predicate {
     typedef Arg2 second_argument_type;
     typedef bool result_type;
 
-    binary_counting_predicate ( Predicate p ) : p_(p), count_(0) {}
-    ~binary_counting_predicate() {}
+    TEST_CONSTEXPR_CXX20 binary_counting_predicate(Predicate p) : p_(p), count_(0) {}
+    TEST_CONSTEXPR_CXX20 ~binary_counting_predicate() {}
----------------
mordante wrote:

Sorry I meant `= default;`, not `= delete;`. The reason why it was not done in the past since `= default` is not part of C++03. Nowadays Clang does support that syntax in C++03.

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


More information about the libcxx-commits mailing list