|
Boost-Commit : |
From: pdimov_at_[hidden]
Date: 2008-05-05 16:06:59
Author: pdimov
Date: 2008-05-05 16:06:58 EDT (Mon, 05 May 2008)
New Revision: 45150
URL: http://svn.boost.org/trac/boost/changeset/45150
Log:
Unconditionally #include <exception> for std::exception.
Text files modified:
trunk/boost/throw_exception.hpp | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
Modified: trunk/boost/throw_exception.hpp
==============================================================================
--- trunk/boost/throw_exception.hpp (original)
+++ trunk/boost/throw_exception.hpp 2008-05-05 16:06:58 EDT (Mon, 05 May 2008)
@@ -22,6 +22,7 @@
#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>
+#include <exception>
#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 <exception>
-#else
-# ifndef BOOST_EXCEPTION_DISABLE
-# include <boost/exception/enable_current_exception.hpp>
-# include <boost/exception/enable_error_info.hpp>
-# endif
+#if !defined( BOOST_NO_EXCEPTIONS ) && !defined( BOOST_EXCEPTION_DISABLE )
+# include <boost/exception/enable_current_exception.hpp>
+# include <boost/exception/enable_error_info.hpp>
#endif
namespace boost
@@ -45,13 +42,13 @@
#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<class E> inline void throw_exception(E const & e)
+template<class E> inline void throw_exception( E const & e )
{
//All boost exceptions are required to derive std::exception,
//to ensure compatibility with BOOST_NO_EXCEPTIONS.
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk