diff --git a/include/boost/exception/exception.hpp b/include/boost/exception/exception.hpp index 37a582c..4c768ee 100644 --- a/include/boost/exception/exception.hpp +++ b/include/boost/exception/exception.hpp @@ -7,6 +7,7 @@ #define BOOST_EXCEPTION_274DA366004E11DCB1DDFE2E56D89593 #include +#include #ifdef BOOST_EXCEPTION_MINI_BOOST #include @@ -390,6 +391,9 @@ boost } //////////////////////////////////////////////////////////////////////// +#if defined(BOOST_NO_EXCEPTIONS) + BOOST_NORETURN void throw_exception(std::exception const & e); // user defined +#endif namespace exception_detail @@ -466,7 +470,11 @@ boost void rethrow() const { +#if defined(BOOST_NO_EXCEPTIONS) + boost::throw_exception(*this); +#else throw*this; +#endif } }; }