forked from boostorg/throw_exception
Remove inline
from throw_exception
This commit is contained in:
@ -30,7 +30,7 @@ BOOST_NORETURN void throw_exception( std::exception const & e,
|
||||
|
||||
#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,
|
||||
boost::source_location const & loc );
|
||||
@ -52,7 +52,7 @@ BOOST_NORETURN void throw_exception( std::exception const & e ); // user defined
|
||||
|
||||
#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
|
||||
```
|
||||
|
@ -54,13 +54,13 @@ BOOST_NORETURN void throw_exception( std::exception const & e, boost::source_loc
|
||||
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 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 e;
|
||||
@ -145,13 +145,13 @@ public:
|
||||
|
||||
// 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 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 wrapexcept<E>( e, loc );
|
||||
|
Reference in New Issue
Block a user