[libcxx-commits] [libcxx] [libc++] Fix ambiguous call in {ranges, std}::find (PR #122641)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 11 01:03:50 PST 2025
================
@@ -38,29 +40,82 @@ _LIBCPP_BEGIN_NAMESPACE_STD
return __builtin_ctzll(__x);
}
+#ifndef _LIBCPP_CXX03_LANG
+// constexpr implementation for C++11 and later
+
+// Precondition: __t != 0 (the caller __countr_zero handles __t == 0 as a special case)
----------------
ldionne wrote:
Let's add a `_LIBCPP_ASSERT_INTERNAL` assertion for this.
https://github.com/llvm/llvm-project/pull/122641
More information about the libcxx-commits
mailing list