diff --git a/include/boost/beast/_experimental/unit_test/suite.hpp b/include/boost/beast/_experimental/unit_test/suite.hpp index fd6e2a2f..58f8598b 100644 --- a/include/boost/beast/_experimental/unit_test/suite.hpp +++ b/include/boost/beast/_experimental/unit_test/suite.hpp @@ -11,7 +11,6 @@ #define BOOST_BEAST_UNIT_TEST_SUITE_HPP #include -#include #include #include #include @@ -566,7 +565,7 @@ fail(std::string const& reason) if(abort_) { aborted_ = true; - BOOST_THROW_EXCEPTION(abort_exception()); + throw abort_exception(); } } @@ -584,7 +583,7 @@ suite:: propagate_abort() { if(abort_ && aborted_) - BOOST_THROW_EXCEPTION(abort_exception()); + throw abort_exception(); } template diff --git a/test/beast/core/saved_handler.cpp b/test/beast/core/saved_handler.cpp index 57a105c6..e1a7b2cd 100644 --- a/test/beast/core/saved_handler.cpp +++ b/test/beast/core/saved_handler.cpp @@ -86,7 +86,7 @@ public: throwing_handler(throwing_handler&&) { - BOOST_THROW_EXCEPTION(std::exception{}); + throw std::exception{}; } void