Index: throw_exception.hpp =================================================================== --- throw_exception.hpp (revision 44567) +++ throw_exception.hpp (working copy) @@ -23,6 +23,11 @@ #ifdef BOOST_NO_EXCEPTIONS # include +#else +# ifndef BOOST_EXCEPTION_DISABLE +# include +# include +# endif #endif namespace boost @@ -36,7 +41,11 @@ template inline void throw_exception(E const & e) { +#ifndef BOOST_EXCEPTION_DISABLE + throw enable_current_exception(enable_error_info(e)); +#else throw e; +#endif } #endif