diff --git a/doc/reference.adoc b/doc/reference.adoc index 413d60c..327c555 100644 --- a/doc/reference.adoc +++ b/doc/reference.adoc @@ -30,7 +30,7 @@ BOOST_NORETURN void throw_exception( std::exception const & e, #else -template BOOST_NORETURN inline void throw_exception( E const & e ); +template BOOST_NORETURN void throw_exception( E const & e ); template BOOST_NORETURN void throw_exception( E const & e, boost::source_location const & loc ); @@ -52,7 +52,7 @@ BOOST_NORETURN void throw_exception( std::exception const & e ); // user defined #else -template BOOST_NORETURN inline void throw_exception( E const & e ); +template BOOST_NORETURN void throw_exception( E const & e ); #endif ``` diff --git a/include/boost/throw_exception.hpp b/include/boost/throw_exception.hpp index 5a0e50c..e8fac06 100644 --- a/include/boost/throw_exception.hpp +++ b/include/boost/throw_exception.hpp @@ -54,13 +54,13 @@ BOOST_NORETURN void throw_exception( std::exception const & e, boost::source_loc namespace boost { -template BOOST_NORETURN inline void throw_exception( E const & e ) +template BOOST_NORETURN void throw_exception( E const & e ) { throw_exception_assert_compatibility( e ); throw e; } -template BOOST_NORETURN inline void throw_exception( E const & e, boost::source_location const & ) +template BOOST_NORETURN void throw_exception( E const & e, boost::source_location const & ) { throw_exception_assert_compatibility( e ); throw e; @@ -145,13 +145,13 @@ public: // boost::throw_exception -template BOOST_NORETURN inline void throw_exception( E const & e ) +template BOOST_NORETURN void throw_exception( E const & e ) { throw_exception_assert_compatibility( e ); throw wrapexcept( e ); } -template BOOST_NORETURN inline void throw_exception( E const & e, boost::source_location const & loc ) +template BOOST_NORETURN void throw_exception( E const & e, boost::source_location const & loc ) { throw_exception_assert_compatibility( e ); throw wrapexcept( e, loc );