Fixing a comment error and adding a trivial protected destructor.

[SVN r57379]
This commit is contained in:
Emil Dotchevski
2009-11-04 21:17:35 +00:00
parent 910c081d37
commit 3191be8955
2 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,10 @@ boost
virtual void _rethrow() const=0; virtual void _rethrow() const=0;
virtual bool _empty() const=0; virtual bool _empty() const=0;
protected:
~exception_ptr_base() throw() { }
}; };
} }
} }

View File

@ -56,7 +56,7 @@ inline void throw_exception_assert_compatibility( std::exception const & ) { }
template<class E> BOOST_ATTRIBUTE_NORETURN inline void throw_exception( E const & e ) 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. //to ensure compatibility with BOOST_NO_EXCEPTIONS.
throw_exception_assert_compatibility(e); throw_exception_assert_compatibility(e);