[libcxx-commits]  [libcxx] [libc++] Fix ambiguous call in {ranges,	std}::find (PR #122641)
    Peng Liu via libcxx-commits 
    libcxx-commits at lists.llvm.org
       
    Tue Feb 11 20:54:45 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)
----------------
winner245 wrote:
A `_LIBCPP_ASSERT_INTERNAL` assertion has been added to make the precondition more explicit. 
https://github.com/llvm/llvm-project/pull/122641
    
    
More information about the libcxx-commits
mailing list