[libcxx-commits] [libcxx] [libc++][math] Add `constexpr` to classification / comparison functions (PR #210075)
Hristo Hristov via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jul 18 07:25:34 PDT 2026
================
@@ -137,47 +137,52 @@ template <class _A1, __enable_if_t<is_integral<_A1>::value, int> = 0>
// isgreater
template <class _A1, class _A2, __enable_if_t<is_arithmetic<_A1>::value && is_arithmetic<_A2>::value, int> = 0>
-[[__nodiscard__]] inline _LIBCPP_HIDE_FROM_ABI bool isgreater(_A1 __x, _A2 __y) _NOEXCEPT {
+[[__nodiscard__]] inline _LIBCPP_CONSTEXPR_SINCE_CXX23 _LIBCPP_HIDE_FROM_ABI bool
----------------
Zingam wrote:
You'll need to update the synopsis i `<cmath>` with `// constexpr since C++23`.
https://github.com/llvm/llvm-project/pull/210075
More information about the libcxx-commits
mailing list