[libcxx-commits] [libcxx] [libc++] std::cmp_less and other integer comparison functions could be improved (PR #151332)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 11 00:23:51 PDT 2025


================
@@ -26,10 +26,18 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 
 #if _LIBCPP_STD_VER >= 20
 
+template <typename _Tp, typename _Ip>
+inline constexpr bool __comparison_can_promote_to =
----------------
philnik777 wrote:

Couldn't we use a concept here?

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


More information about the libcxx-commits mailing list