diff --git a/include/boost/exception/detail/exception_ptr_base.hpp b/include/boost/exception/detail/exception_ptr_base.hpp index d261c18..ac68cab 100644 --- a/include/boost/exception/detail/exception_ptr_base.hpp +++ b/include/boost/exception/detail/exception_ptr_base.hpp @@ -19,6 +19,13 @@ boost virtual void _rethrow() const=0; virtual bool _empty() const=0; + + protected: + + virtual + ~exception_ptr_base() throw() + { + } }; } } diff --git a/include/boost/exception_ptr.hpp b/include/boost/exception_ptr.hpp index 91dce25..0d18db1 100644 --- a/include/boost/exception_ptr.hpp +++ b/include/boost/exception_ptr.hpp @@ -90,6 +90,10 @@ boost { } + ~exception_ptr() throw() + { + } + operator unspecified_bool_type() const { return _empty() ? 0 : &exception_ptr::bad_alloc_;