diff --git a/include/boost/functional/hash/hash.hpp b/include/boost/functional/hash/hash.hpp index b77264e..bcb5530 100644 --- a/include/boost/functional/hash/hash.hpp +++ b/include/boost/functional/hash/hash.hpp @@ -211,8 +211,7 @@ namespace boost for(; first != last; ++first) { - T& x = *first; - hash_combine(seed, x); + hash_combine(seed, first[0]); } return seed; @@ -223,8 +222,7 @@ namespace boost { for(; first != last; ++first) { - T const& x = *first; - hash_combine(seed, x); + hash_combine(seed, first[0]); } } #endif @@ -259,15 +257,6 @@ namespace boost template inline std::size_t float_hash_value(T v) { -#if defined(__BORLAND__) - if(v == std::numeric_limits::quiet_NaN()) - return 0; - if(v == std::numeric_limits::infinity()) - return 1; - if(v == -std::numeric_limits::infinity()) - return 2; -#endif - int exp; v = boost::hash_detail::call_frexp(v, &exp);