Boost logo

Boost-Commit :

From: emil_at_[hidden]
Date: 2008-08-20 17:48:36


Author: emildotchevski
Date: 2008-08-20 17:48:35 EDT (Wed, 20 Aug 2008)
New Revision: 48270
URL: http://svn.boost.org/trac/boost/changeset/48270

Log:
fix for mutable problem, thanks Peter Klotz
Text files modified:
   trunk/boost/exception/enable_current_exception.hpp | 2 +-
   trunk/boost/exception/exception.hpp | 2 +-
   trunk/boost/exception/info.hpp | 4 ++--
   3 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/exception/enable_current_exception.hpp
==============================================================================
--- trunk/boost/exception/enable_current_exception.hpp (original)
+++ trunk/boost/exception/enable_current_exception.hpp 2008-08-20 17:48:35 EDT (Wed, 20 Aug 2008)
@@ -98,7 +98,7 @@
 
             private:
 
- detail::atomic_count mutable count_;
+ mutable detail::atomic_count count_;
 
             void
             add_ref() const

Modified: trunk/boost/exception/exception.hpp
==============================================================================
--- trunk/boost/exception/exception.hpp (original)
+++ trunk/boost/exception/exception.hpp 2008-08-20 17:48:35 EDT (Wed, 20 Aug 2008)
@@ -105,7 +105,7 @@
         template <class ErrorInfo,class E>
         friend shared_ptr<typename ErrorInfo::value_type const> get_error_info( E const & );
 
- intrusive_ptr<exception_detail::error_info_container> mutable data_;
+ mutable intrusive_ptr<exception_detail::error_info_container> data_;
         };
 
 #if BOOST_WORKAROUND( BOOST_MSVC, BOOST_TESTED_AT(1500) ) //See above.

Modified: trunk/boost/exception/info.hpp
==============================================================================
--- trunk/boost/exception/info.hpp (original)
+++ trunk/boost/exception/info.hpp 2008-08-20 17:48:35 EDT (Wed, 20 Aug 2008)
@@ -201,8 +201,8 @@
 
             typedef std::map< typeinfo, shared_ptr<error_info_base const> > error_info_map;
             error_info_map info_;
- std::string mutable what_;
- int mutable count_;
+ mutable std::string what_;
+ mutable int count_;
 
             void
             add_ref() const


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