forked from boostorg/smart_ptr
Fixes for old compilers.
[SVN r45069]
This commit is contained in:
1 parent
0c4aaef77c
commit
da323af72d
2 files changed
+11
-2
No files matched your search
@@ -21,7 +21,9 @@
|
||||
// spinlock_pool<2> is reserved for shared_ptr atomic access
|
||||
//
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/detail/spinlock.hpp>
|
||||
#include <cstddef>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
@@ -39,7 +41,7 @@ public:
|
||||
|
||||
static spinlock & spinlock_for( void const * pv )
|
||||
{
|
||||
size_t i = reinterpret_cast< size_t >( pv ) % 41;
|
||||
std::size_t i = reinterpret_cast< std::size_t >( pv ) % 41;
|
||||
return pool_[ i ];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user