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]
This commit is contained in:
Daniel James
2007-08-24 01:11:33 +00:00
parent 33643fd6b3
commit 2ae3f472c1

View File

@@ -17,7 +17,6 @@
#include <boost/functional/detail/float_functions.hpp>
#include <boost/limits.hpp>
#include <boost/assert.hpp>
#include <errno.h>
// 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;