Sun C++ didn't like the function call, so just try inlining the implementation for now.

[SVN r40036]
This commit is contained in:
Daniel James
2007-10-14 21:52:12 +00:00
parent 2196f0ea17
commit f1dfae8703

View File

@@ -474,7 +474,10 @@ namespace boost
#if !BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590) #if !BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590)
return boost::hash_value(v); return boost::hash_value(v);
#else #else
return boost::hash_value<T*>(v); std::size_t x = static_cast<std::size_t>(
reinterpret_cast<std::ptrdiff_t>(v));
return x + (x >> 3);
#endif #endif
} }
}; };
@@ -496,7 +499,10 @@ namespace boost
#if !BOOST_WORKAROUND(__SUNPRO_CC, <= 590) #if !BOOST_WORKAROUND(__SUNPRO_CC, <= 590)
return boost::hash_value(val); return boost::hash_value(val);
#else #else
return boost::hash_value<T>(val); std::size_t x = static_cast<std::size_t>(
reinterpret_cast<std::ptrdiff_t>(val));
return x + (x >> 3);
#endif #endif
} }
}; };