Skip to content

Commit 7c9611e

Browse files
Prevent xsimd::signbit scalar overload from participating to non-scalar resolution
Related to serge-sans-paille/pythran#2423
1 parent ec38046 commit 7c9611e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/xsimd/arch/xsimd_scalar.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ namespace xsimd
819819
return static_cast<long double>(std::signbit(x));
820820
}
821821

822-
template <class T>
822+
template <class T, class = std::enable_if_t<std::is_scalar<T>::value>>
823823
XSIMD_INLINE auto signbit(T const& v) noexcept
824824
{
825825
return bitofsign(v);

0 commit comments

Comments
 (0)