forked from boostorg/exception
Fixing a comment error and adding a trivial protected destructor.
[SVN r57379]
This commit is contained in:
@ -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() { }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user