From 14765312e23e52f09de4bc871620afa0be410b07 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Wed, 20 Aug 2008 21:48:35 +0000 Subject: [PATCH] fix for mutable problem, thanks Peter Klotz [SVN r48270] --- include/boost/exception/enable_current_exception.hpp | 2 +- include/boost/exception/exception.hpp | 2 +- include/boost/exception/info.hpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/exception/enable_current_exception.hpp b/include/boost/exception/enable_current_exception.hpp index 751fe73..4c17fb0 100644 --- a/include/boost/exception/enable_current_exception.hpp +++ b/include/boost/exception/enable_current_exception.hpp @@ -98,7 +98,7 @@ boost private: - detail::atomic_count mutable count_; + mutable detail::atomic_count count_; void add_ref() const diff --git a/include/boost/exception/exception.hpp b/include/boost/exception/exception.hpp index d128cd3..4670481 100644 --- a/include/boost/exception/exception.hpp +++ b/include/boost/exception/exception.hpp @@ -105,7 +105,7 @@ boost template friend shared_ptr get_error_info( E const & ); - intrusive_ptr mutable data_; + mutable intrusive_ptr data_; }; #if BOOST_WORKAROUND( BOOST_MSVC, BOOST_TESTED_AT(1500) ) //See above. diff --git a/include/boost/exception/info.hpp b/include/boost/exception/info.hpp index 819a595..4f8f69d 100644 --- a/include/boost/exception/info.hpp +++ b/include/boost/exception/info.hpp @@ -201,8 +201,8 @@ virtual //Disable bogus GCC warning. typedef std::map< typeinfo, shared_ptr > 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