mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-02 12:14:43 +02:00
committed by
Victor Zverovich
parent
17062a0c9b
commit
8a8f4825a3
@@ -2695,7 +2695,7 @@ FMT_CONSTEXPR20 auto write_float(OutputIt out, const DecimalFP& f,
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename T> constexpr auto isnan(T value) -> bool {
|
template <typename T> constexpr auto isnan(T value) -> bool {
|
||||||
return !(value >= value); // std::isnan doesn't support __float128.
|
return value != value; // std::isnan doesn't support __float128.
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, typename Enable = void>
|
template <typename T, typename Enable = void>
|
||||||
|
Reference in New Issue
Block a user