diff --git a/include/boost/throw_exception.hpp b/include/boost/throw_exception.hpp index 1a57675..36ed0e3 100644 --- a/include/boost/throw_exception.hpp +++ b/include/boost/throw_exception.hpp @@ -22,6 +22,7 @@ #include #include +#include #if !defined( BOOST_EXCEPTION_DISABLE ) && defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, <= 0x551 ) # define BOOST_EXCEPTION_DISABLE @@ -31,13 +32,9 @@ # define BOOST_EXCEPTION_DISABLE #endif -#ifdef BOOST_NO_EXCEPTIONS -# include -#else -# ifndef BOOST_EXCEPTION_DISABLE -# include -# include -# endif +#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE ) +# include +# include #endif namespace boost @@ -45,13 +42,13 @@ namespace boost #ifdef BOOST_NO_EXCEPTIONS -void throw_exception(std::exception const & e); // user defined +void throw_exception( std::exception const & e ); // user defined #else inline void throw_exception_assert_compatibility( std::exception const & ) { } -template inline void throw_exception(E const & e) +template inline void throw_exception( E const & e ) { //All boost exceptions are required to derive std::exception, //to ensure compatibility with BOOST_NO_EXCEPTIONS.