Skip to content

Commit 255f7aa

Browse files
committed
fixing test link errors under BOOST_LEAF_NO_EXCEPTIONS
1 parent feabeca commit 255f7aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/so_dll_lib1.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
#include <iostream>
1515
namespace boost
1616
{
17-
[[noreturn]] void throw_exception( std::exception const & e )
17+
[[noreturn]] inline void throw_exception( std::exception const & e )
1818
{
1919
std::cerr << "Terminating due to a C++ exception under BOOST_LEAF_NO_EXCEPTIONS: " << e.what();
2020
std::terminate();
2121
}
2222

2323
struct source_location;
24-
[[noreturn]] void throw_exception( std::exception const & e, boost::source_location const & )
24+
[[noreturn]] inline void throw_exception( std::exception const & e, boost::source_location const & )
2525
{
2626
throw_exception(e);
2727
}

test/so_dll_lib2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
#include <iostream>
1515
namespace boost
1616
{
17-
[[noreturn]] void throw_exception( std::exception const & e )
17+
[[noreturn]] inline void throw_exception( std::exception const & e )
1818
{
1919
std::cerr << "Terminating due to a C++ exception under BOOST_LEAF_NO_EXCEPTIONS: " << e.what();
2020
std::terminate();
2121
}
2222

2323
struct source_location;
24-
[[noreturn]] void throw_exception( std::exception const & e, boost::source_location const & )
24+
[[noreturn]] inline void throw_exception( std::exception const & e, boost::source_location const & )
2525
{
2626
throw_exception(e);
2727
}

0 commit comments

Comments
 (0)