Ticket #4478: smart_ptr.patch
File smart_ptr.patch, 680 bytes (added by , 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: 41 41 42 42 static spinlock & spinlock_for( void const * pv ) 43 43 { 44 #if defined(__VMS) && __INITIAL_POINTER_SIZE == 64 45 std::size_t i = reinterpret_cast< unsigned long long >( pv ) % 41; 46 #else 44 47 std::size_t i = reinterpret_cast< std::size_t >( pv ) % 41; 48 #endif 45 49 return pool_[ i ]; 46 50 } 47 51