[libcxx-commits] [libcxx] [libc++][math] Provide overloads for cv-unqualified floating point types for `std::signbit` (PR #106566)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Sep 12 04:52:26 PDT 2024


================
@@ -34,8 +34,21 @@ namespace __math {
 #  define _LIBCPP_SIGNBIT_CONSTEXPR
 #endif
 
-template <class _A1, __enable_if_t<is_floating_point<_A1>::value, int> = 0>
-_LIBCPP_NODISCARD inline _LIBCPP_SIGNBIT_CONSTEXPR _LIBCPP_HIDE_FROM_ABI bool signbit(_A1 __x) _NOEXCEPT {
+// The universal C runtime (UCRT) in the WinSDK provides floating point overloads
----------------
philnik777 wrote:

I think this removes the only use of `is_floating_point`.

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


More information about the libcxx-commits mailing list