Another attempt at getting the hash array tests to pass on Borland.

[SVN r28390]
This commit is contained in:
Daniel James
2005-04-21 22:20:43 +00:00
parent 8dc87153e9
commit 638ca2658f

View File

@@ -65,6 +65,10 @@ namespace boost
template <class It> std::size_t hash_range(It first, It last);
template <class It> void hash_range(std::size_t&, It first, It last);
#if defined(__BORLANDC__)
template <class T> inline std::size_t hash_range(T*, T*);
template <class T> inline void hash_range(std::size_t&, T*, T*);
#endif
#if defined(BOOST_MSVC) && BOOST_MSVC < 1300
template <class T> void hash_combine(std::size_t& seed, T& v);
@@ -211,7 +215,8 @@ namespace boost
for(; first != last; ++first)
{
hash_combine(seed, first[0]);
seed ^= hash_detail::call_hash<T>::call(*first)
+ 0x9e3779b9 + (seed<<6) + (seed>>2);
}
return seed;
@@ -222,7 +227,8 @@ namespace boost
{
for(; first != last; ++first)
{
hash_combine(seed, first[0]);
seed ^= hash_detail::call_hash<T>::call(*first)
+ 0x9e3779b9 + (seed<<6) + (seed>>2);
}
}
#endif