diff --git a/include/boost/functional/hash/hash.hpp b/include/boost/functional/hash/hash.hpp index 81ff1dd..0ff794e 100644 --- a/include/boost/functional/hash/hash.hpp +++ b/include/boost/functional/hash/hash.hpp @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -264,7 +265,9 @@ namespace boost inline std::size_t float_hash_value(T v) { int exp = 0; + errno = 0; v = boost::hash_detail::call_frexp(v, &exp); + if(errno) return 0; std::size_t seed = 0;