Boost logo

Boost-Commit :

From: pdimov_at_[hidden]
Date: 2008-07-12 07:41:20


Author: pdimov
Date: 2008-07-12 07:41:20 EDT (Sat, 12 Jul 2008)
New Revision: 47346
URL: http://svn.boost.org/trac/boost/changeset/47346

Log:
Updated spinlock_pool.hpp from trunk HEAD; takes care of 45069.
Text files modified:
   branches/release/boost/detail/spinlock_pool.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: branches/release/boost/detail/spinlock_pool.hpp
==============================================================================
--- branches/release/boost/detail/spinlock_pool.hpp (original)
+++ branches/release/boost/detail/spinlock_pool.hpp 2008-07-12 07:41:20 EDT (Sat, 12 Jul 2008)
@@ -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 @@
 
     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 ];
     }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk