Remove VMS workaround

This commit is contained in:
Peter Dimov
2021-10-16 16:54:08 +03:00
parent b201ff97a8
commit bd379e1a46

View File

@@ -331,15 +331,8 @@ namespace boost
// Implementation by Alberto Barbati and Dave Harris.
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>(
reinterpret_cast<long long int>(v));
#else
std::size_t x = static_cast<std::size_t>(
reinterpret_cast<std::ptrdiff_t>(v));
#endif
reinterpret_cast<boost::uintptr_t>(v));
return x + (x >> 3);
}