From 7ad5ceee77bebc5e54f82858384e43ce16808638 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Wed, 30 Apr 2008 21:45:00 +0000 Subject: [PATCH] Integration of Boost Exception in boost::throw_exception(). [SVN r44954] --- include/boost/throw_exception.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/throw_exception.hpp b/include/boost/throw_exception.hpp index bb79a37..86dbcce 100644 --- a/include/boost/throw_exception.hpp +++ b/include/boost/throw_exception.hpp @@ -23,6 +23,11 @@ #ifdef BOOST_NO_EXCEPTIONS # include +#else +# ifndef BOOST_EXCEPTION_DISABLE +# include +# include +# endif #endif namespace boost @@ -36,7 +41,11 @@ void throw_exception(std::exception const & e); // user defined 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