File tree Expand file tree Collapse file tree 3 files changed +4
-36
lines changed
Expand file tree Collapse file tree 3 files changed +4
-36
lines changed Original file line number Diff line number Diff line change 88#ifdef BOOST_LEAF_NO_EXCEPTIONS
99namespace boost
1010{
11- [[noreturn]] void throw_exception ( std::exception const & e )
11+ [[noreturn]] inline void throw_exception ( std::exception const & e )
1212 {
1313 std::cerr << " Terminating due to a C++ exception under BOOST_LEAF_NO_EXCEPTIONS: " << e.what ();
1414 std::terminate ();
1515 }
1616
1717 struct source_location ;
18- [[noreturn]] void throw_exception ( std::exception const & e, boost::source_location const & )
18+ [[noreturn]] inline void throw_exception ( std::exception const & e, boost::source_location const & )
1919 {
2020 throw_exception (e);
2121 }
Original file line number Diff line number Diff line change 1010# include < boost/leaf/on_error.hpp>
1111#endif
1212
13- #ifdef BOOST_LEAF_NO_EXCEPTIONS
14- #include < iostream>
15- namespace boost
16- {
17- [[noreturn]] inline void throw_exception ( std::exception const & e )
18- {
19- std::cerr << " Terminating due to a C++ exception under BOOST_LEAF_NO_EXCEPTIONS: " << e.what ();
20- std::terminate ();
21- }
22-
23- struct source_location ;
24- [[noreturn]] inline void throw_exception ( std::exception const & e, boost::source_location const & )
25- {
26- throw_exception (e);
27- }
28- }
29- #endif
13+ #include " lightweight_test.hpp"
3014
3115#define BOOST_LEAF_SO_DLL_TEST_BUILDING_LIB1
3216
Original file line number Diff line number Diff line change 1010# include < boost/leaf/on_error.hpp>
1111#endif
1212
13- #ifdef BOOST_LEAF_NO_EXCEPTIONS
14- #include < iostream>
15- namespace boost
16- {
17- [[noreturn]] inline void throw_exception ( std::exception const & e )
18- {
19- std::cerr << " Terminating due to a C++ exception under BOOST_LEAF_NO_EXCEPTIONS: " << e.what ();
20- std::terminate ();
21- }
22-
23- struct source_location ;
24- [[noreturn]] inline void throw_exception ( std::exception const & e, boost::source_location const & )
25- {
26- throw_exception (e);
27- }
28- }
29- #endif
13+ #include " lightweight_test.hpp"
3014
3115#define BOOST_LEAF_SO_DLL_TEST_BUILDING_LIB2
3216
You can’t perform that action at this time.
0 commit comments