diff -rupN boost_1_43_0/boost/functional/hash/hash.hpp boost_vms_1_43_0/boost/functional/hash/hash.hpp
|
old
|
new
|
namespace boost
|
| 193 | 193 | template <class T> std::size_t hash_value(T* v) |
| 194 | 194 | #endif |
| 195 | 195 | { |
| | 196 | #if defined(__VMS) && __INITIAL_POINTER_SIZE == 64 |
| | 197 | // for some reason ptrdiff_t on OpenVMS compiler with |
| | 198 | // 64 bit is not 64 bit !!! |
| | 199 | std::size_t x = static_cast<std::size_t>( |
| | 200 | reinterpret_cast<long long int>(v)); |
| | 201 | #else |
| 196 | 202 | std::size_t x = static_cast<std::size_t>( |
| 197 | 203 | reinterpret_cast<std::ptrdiff_t>(v)); |
| 198 | | |
| | 204 | #endif |
| 199 | 205 | return x + (x >> 3); |
| 200 | 206 | } |
| 201 | 207 | |