[libcxx-commits] [libcxx] [libc++] Support sorting consteval-only ranges (PR #134623)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 9 11:01:39 PDT 2025


================
@@ -20,16 +20,12 @@
 
 _LIBCPP_BEGIN_NAMESPACE_STD
 
-#if _LIBCPP_STD_VER >= 14
-
 template <class _Tp>
-_LIBCPP_HIDE_FROM_ABI constexpr _Tp __bit_log2(_Tp __t) noexcept {
+_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 _Tp __bit_log2(_Tp __t) _NOEXCEPT {
----------------
philnik777 wrote:

Could you separate the change to using `__bit_log2`? 

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


More information about the libcxx-commits mailing list