Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2007-08-23 21:11:33


Author: danieljames
Date: 2007-08-23 21:11:33 EDT (Thu, 23 Aug 2007)
New Revision: 38877
URL: http://svn.boost.org/trac/boost/changeset/38877

Log:
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.

Text files modified:
   trunk/boost/functional/detail/hash_float.hpp | 3 ---
   1 files changed, 0 insertions(+), 3 deletions(-)

Modified: trunk/boost/functional/detail/hash_float.hpp
==============================================================================
--- trunk/boost/functional/detail/hash_float.hpp (original)
+++ trunk/boost/functional/detail/hash_float.hpp 2007-08-23 21:11:33 EDT (Thu, 23 Aug 2007)
@@ -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 @@
         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;
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk