Boost logo

Boost-Commit :

From: pdimov_at_[hidden]
Date: 2008-05-03 11:33:07


Author: pdimov
Date: 2008-05-03 11:33:06 EDT (Sat, 03 May 2008)
New Revision: 45069
URL: http://svn.boost.org/trac/boost/changeset/45069

Log:
Fixes for old compilers.
Text files modified:
   trunk/boost/detail/spinlock_pool.hpp | 4 +++-
   trunk/boost/enable_shared_from_this.hpp | 9 ++++++++-
   trunk/boost/throw_exception.hpp | 9 +++++++++
   3 files changed, 20 insertions(+), 2 deletions(-)

Modified: trunk/boost/detail/spinlock_pool.hpp
==============================================================================
--- trunk/boost/detail/spinlock_pool.hpp (original)
+++ trunk/boost/detail/spinlock_pool.hpp 2008-05-03 11:33:06 EDT (Sat, 03 May 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 ];
     }
 

Modified: trunk/boost/enable_shared_from_this.hpp
==============================================================================
--- trunk/boost/enable_shared_from_this.hpp (original)
+++ trunk/boost/enable_shared_from_this.hpp 2008-05-03 11:33:06 EDT (Sat, 03 May 2008)
@@ -13,9 +13,10 @@
 // http://www.boost.org/libs/smart_ptr/enable_shared_from_this.html
 //
 
+#include <boost/config.hpp>
 #include <boost/shared_ptr.hpp>
 #include <boost/assert.hpp>
-#include <boost/config.hpp>
+#include <boost/detail/workaround.hpp>
 
 namespace boost
 {
@@ -77,6 +78,12 @@
         }
     }
 
+#if defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, <= 0x551 )
+
+public:
+
+#endif
+
     template<typename U>
     void sp_accept_owner( shared_ptr<U> & owner ) const
     {

Modified: trunk/boost/throw_exception.hpp
==============================================================================
--- trunk/boost/throw_exception.hpp (original)
+++ trunk/boost/throw_exception.hpp 2008-05-03 11:33:06 EDT (Sat, 03 May 2008)
@@ -21,6 +21,15 @@
 //
 
 #include <boost/config.hpp>
+#include <boost/detail/workaround.hpp>
+
+#if !defined( BOOST_EXCEPTION_DISABLE ) && defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, <= 0x551 )
+# define BOOST_EXCEPTION_DISABLE
+#endif
+
+#if !defined( BOOST_EXCEPTION_DISABLE ) && defined( BOOST_MSVC ) && BOOST_WORKAROUND( BOOST_MSVC, < 1310 )
+# define BOOST_EXCEPTION_DISABLE
+#endif
 
 #ifdef BOOST_NO_EXCEPTIONS
 # include <exception>


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