Remove inline from throw_exception

This commit is contained in:
Peter Dimov
2019-11-26 19:10:57 +02:00
parent f477e33259
commit ea9bd58f8c
2 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@ BOOST_NORETURN void throw_exception( std::exception const & e,
#else #else
template<class E> BOOST_NORETURN inline void throw_exception( E const & e ); template<class E> BOOST_NORETURN void throw_exception( E const & e );
template<class E> BOOST_NORETURN void throw_exception( E const & e, template<class E> BOOST_NORETURN void throw_exception( E const & e,
boost::source_location const & loc ); boost::source_location const & loc );
@ -52,7 +52,7 @@ BOOST_NORETURN void throw_exception( std::exception const & e ); // user defined
#else #else
template<class E> BOOST_NORETURN inline void throw_exception( E const & e ); template<class E> BOOST_NORETURN void throw_exception( E const & e );
#endif #endif
``` ```

View File

@ -54,13 +54,13 @@ BOOST_NORETURN void throw_exception( std::exception const & e, boost::source_loc
namespace boost namespace boost
{ {
template<class E> BOOST_NORETURN inline void throw_exception( E const & e ) template<class E> BOOST_NORETURN void throw_exception( E const & e )
{ {
throw_exception_assert_compatibility( e ); throw_exception_assert_compatibility( e );
throw e; throw e;
} }
template<class E> BOOST_NORETURN inline void throw_exception( E const & e, boost::source_location const & ) template<class E> BOOST_NORETURN void throw_exception( E const & e, boost::source_location const & )
{ {
throw_exception_assert_compatibility( e ); throw_exception_assert_compatibility( e );
throw e; throw e;
@ -145,13 +145,13 @@ public:
// boost::throw_exception // boost::throw_exception
template<class E> BOOST_NORETURN inline void throw_exception( E const & e ) template<class E> BOOST_NORETURN void throw_exception( E const & e )
{ {
throw_exception_assert_compatibility( e ); throw_exception_assert_compatibility( e );
throw wrapexcept<E>( e ); throw wrapexcept<E>( e );
} }
template<class E> BOOST_NORETURN inline void throw_exception( E const & e, boost::source_location const & loc ) template<class E> BOOST_NORETURN void throw_exception( E const & e, boost::source_location const & loc )
{ {
throw_exception_assert_compatibility( e ); throw_exception_assert_compatibility( e );
throw wrapexcept<E>( e, loc ); throw wrapexcept<E>( e, loc );