From 3191be895513528aa14a2524a049120e181b9b98 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Wed, 4 Nov 2009 21:17:35 +0000 Subject: [PATCH] Fixing a comment error and adding a trivial protected destructor. [SVN r57379] --- include/boost/exception/detail/exception_ptr_base.hpp | 4 ++++ include/boost/throw_exception.hpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/exception/detail/exception_ptr_base.hpp b/include/boost/exception/detail/exception_ptr_base.hpp index d261c18..d84cde8 100644 --- a/include/boost/exception/detail/exception_ptr_base.hpp +++ b/include/boost/exception/detail/exception_ptr_base.hpp @@ -19,6 +19,10 @@ boost virtual void _rethrow() const=0; virtual bool _empty() const=0; + + protected: + + ~exception_ptr_base() throw() { } }; } } diff --git a/include/boost/throw_exception.hpp b/include/boost/throw_exception.hpp index 2250bef..a5a5f9e 100644 --- a/include/boost/throw_exception.hpp +++ b/include/boost/throw_exception.hpp @@ -56,7 +56,7 @@ inline void throw_exception_assert_compatibility( std::exception const & ) { } template 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);