From 2ae3f472c175fd49f1bd954cf92a001e37897a27 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Fri, 24 Aug 2007 01:11:33 +0000 Subject: [PATCH] Remove the errno check when hashing floating point numbers. It's not really needed and was causing problems on the Microsoft Windows Smarthone Edition platform. Fixes #1064. [SVN r38877] --- include/boost/functional/detail/hash_float.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/boost/functional/detail/hash_float.hpp b/include/boost/functional/detail/hash_float.hpp index 62ded55..b85d15f 100644 --- a/include/boost/functional/detail/hash_float.hpp +++ b/include/boost/functional/detail/hash_float.hpp @@ -17,7 +17,6 @@ #include #include #include -#include // Don't use fpclassify or _fpclass for stlport. #if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) @@ -48,9 +47,7 @@ namespace boost inline std::size_t float_hash_impl(T v) { int exp = 0; - errno = 0; v = boost::hash_detail::call_frexp(v, &exp); - if(errno) return 0; std::size_t seed = 0;