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

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 1 04:58:39 PST 2025


================
@@ -23,38 +23,21 @@
 #include "test_iterators.h"
 #include "test_macros.h"
 
-struct is_odd
-{
-    bool operator()(const int& i) const {return i & 1;}
+struct is_odd {
+  TEST_CONSTEXPR_CXX26 bool operator()(const int& i) const { return i & 1; }
 };
----------------
mordante wrote:

This is very hard to review with the formatting changes. Can you do the formatting changes in a separate patch and this have this patch on change the `constexpr` part.

Does the same applies to the other P2562 patches? Feel free to do all formatting in 1 patch and directly commit that patch.

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


More information about the libcxx-commits mailing list