Ticket #4478: smart_ptr.patch

File smart_ptr.patch, 680 bytes (added by artyomtnk@…, 12 years ago)
  • boost/smart_ptr/detail/spinlock_pool.hpp

    diff -rupN boost_1_43_0/boost/smart_ptr/detail/spinlock_pool.hpp boost_vms_1_43_0/boost/smart_ptr/detail/spinlock_pool.hpp
    old new public:  
    4141
    4242    static spinlock & spinlock_for( void const * pv )
    4343    {
     44        #if defined(__VMS) && __INITIAL_POINTER_SIZE == 64
     45        std::size_t i = reinterpret_cast< unsigned long long >( pv ) % 41;
     46        #else
    4447        std::size_t i = reinterpret_cast< std::size_t >( pv ) % 41;
     48        #endif
    4549        return pool_[ i ];
    4650    }
    4751