mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-27 17:12:26 +00:00
Fix for specfun_float128 tests
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#define BOOST_MULTIPRECISION_DETAIL_HASH_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <functional>
|
||||
|
||||
namespace boost { namespace multiprecision { namespace detail {
|
||||
|
||||
@@ -20,6 +21,13 @@ inline void hash_combine(std::size_t& seed, const T& v, Args... args)
|
||||
hash_combine(seed, args...);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline std::size_t hash_value(const T& v)
|
||||
{
|
||||
std::hash<T> hasher;
|
||||
return hasher(v);
|
||||
}
|
||||
|
||||
}}} // Namespaces
|
||||
|
||||
#endif // BOOST_MULTIPRECISION_DETAIL_HASH_HPP
|
||||
|
||||
@@ -632,7 +632,7 @@ inline int eval_signbit BOOST_PREVENT_MACRO_SUBSTITUTION(const float128_backend&
|
||||
|
||||
inline std::size_t hash_value(const float128_backend& val)
|
||||
{
|
||||
return boost::multiprecision::detail::hash_value(static_cast<double>(val.value()));
|
||||
return hash_value(static_cast<double>(val.value()));
|
||||
}
|
||||
|
||||
} // namespace backends
|
||||
|
||||
Reference in New Issue
Block a user