Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57379 - in branches/release/boost: . exception/detail
From: emil_at_[hidden]
Date: 2009-11-04 16:17:36


Author: emildotchevski
Date: 2009-11-04 16:17:35 EST (Wed, 04 Nov 2009)
New Revision: 57379
URL: http://svn.boost.org/trac/boost/changeset/57379

Log:
Fixing a comment error and adding a trivial protected destructor.
Text files modified:
   branches/release/boost/exception/detail/exception_ptr_base.hpp | 4 ++++
   branches/release/boost/throw_exception.hpp | 2 +-
   2 files changed, 5 insertions(+), 1 deletions(-)

Modified: branches/release/boost/exception/detail/exception_ptr_base.hpp
==============================================================================
--- branches/release/boost/exception/detail/exception_ptr_base.hpp (original)
+++ branches/release/boost/exception/detail/exception_ptr_base.hpp 2009-11-04 16:17:35 EST (Wed, 04 Nov 2009)
@@ -19,6 +19,10 @@
 
                         virtual void _rethrow() const=0;
                         virtual bool _empty() const=0;
+
+ protected:
+
+ ~exception_ptr_base() throw() { }
                         };
                 }
     }

Modified: branches/release/boost/throw_exception.hpp
==============================================================================
--- branches/release/boost/throw_exception.hpp (original)
+++ branches/release/boost/throw_exception.hpp 2009-11-04 16:17:35 EST (Wed, 04 Nov 2009)
@@ -56,7 +56,7 @@
 
 template<class E> BOOST_ATTRIBUTE_NORETURN inline void throw_exception( E const & e )
 {
- //All boost exceptions are required to derive std::exception,
+ //All boost exceptions are required to derive from std::exception,
     //to ensure compatibility with BOOST_NO_EXCEPTIONS.
     throw_exception_assert_compatibility(e);
 


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