mirror of
https://github.com/boostorg/functional.git
synced 2025-08-01 21:44:28 +02:00
Sun C++ didn't like the function call, so just try inlining the implementation for now.
[SVN r40036]
This commit is contained in:
@@ -474,7 +474,10 @@ namespace boost
|
||||
#if !BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590)
|
||||
return boost::hash_value(v);
|
||||
#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
|
||||
}
|
||||
};
|
||||
@@ -496,7 +499,10 @@ namespace boost
|
||||
#if !BOOST_WORKAROUND(__SUNPRO_CC, <= 590)
|
||||
return boost::hash_value(val);
|
||||
#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
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user