[libcxx-commits] [libcxx] [libc++] Optimize ranges::{for_each, for_each_n} for segmented iterators (PR #132896)

Peng Liu via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 25 18:58:33 PDT 2025


================
@@ -258,7 +258,7 @@ constexpr bool all_the_algorithms()
 int main(int, char**)
 {
     all_the_algorithms();
-    static_assert(all_the_algorithms());
+    // static_assert(all_the_algorithms());
----------------
winner245 wrote:

Sorry, this was due to my carelessness. While debugging a `constexpr` failure, I commented out this line but forgot to uncomment it afterward...

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


More information about the libcxx-commits mailing list