forked from boostorg/container_hash
Remove VMS workaround
This commit is contained in:
@@ -331,15 +331,8 @@ namespace boost
|
|||||||
// Implementation by Alberto Barbati and Dave Harris.
|
// Implementation by Alberto Barbati and Dave Harris.
|
||||||
template <class T> std::size_t hash_value(T* const& v)
|
template <class T> std::size_t hash_value(T* const& v)
|
||||||
{
|
{
|
||||||
#if defined(__VMS) && __INITIAL_POINTER_SIZE == 64
|
|
||||||
// for some reason ptrdiff_t on OpenVMS compiler with
|
|
||||||
// 64 bit is not 64 bit !!!
|
|
||||||
std::size_t x = static_cast<std::size_t>(
|
std::size_t x = static_cast<std::size_t>(
|
||||||
reinterpret_cast<long long int>(v));
|
reinterpret_cast<boost::uintptr_t>(v));
|
||||||
#else
|
|
||||||
std::size_t x = static_cast<std::size_t>(
|
|
||||||
reinterpret_cast<std::ptrdiff_t>(v));
|
|
||||||
#endif
|
|
||||||
return x + (x >> 3);
|
return x + (x >> 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user