Fix for specfun_float128 tests

This commit is contained in:
Matt Borland
2021-03-20 21:52:53 +03:00
parent 8b1d148251
commit 4cc0c3053d
2 changed files with 9 additions and 1 deletions

View File

@@ -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

View File

@@ -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