Ticket #4477: functional.patch

File functional.patch, 776 bytes (added by artyomtnk@…, 12 years ago)
  • boost/functional/hash/hash.hpp

    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  
    193193    template <class T> std::size_t hash_value(T* v)
    194194#endif
    195195    {
     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
    196202        std::size_t x = static_cast<std::size_t>(
    197203           reinterpret_cast<std::ptrdiff_t>(v));
    198 
     204#endif
    199205        return x + (x >> 3);
    200206    }
    201207