Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61852 - trunk/boost
From: emil_at_[hidden]
Date: 2010-05-08 00:27:49


Author: emildotchevski
Date: 2010-05-08 00:27:44 EDT (Sat, 08 May 2010)
New Revision: 61852
URL: http://svn.boost.org/trac/boost/changeset/61852

Log:
Applying patch submitted by Neal Becker
Text files modified:
   trunk/boost/throw_exception.hpp | 39 +++++++++++++++++++--------------------
   1 files changed, 19 insertions(+), 20 deletions(-)

Modified: trunk/boost/throw_exception.hpp
==============================================================================
--- trunk/boost/throw_exception.hpp (original)
+++ trunk/boost/throw_exception.hpp 2010-05-08 00:27:44 EDT (Sat, 08 May 2010)
@@ -43,26 +43,6 @@
 
 namespace boost
 {
-#if !defined( BOOST_EXCEPTION_DISABLE )
- namespace
- exception_detail
- {
- template <class E>
- void
- throw_exception_( E const & x, char const * current_function, char const * file, int line )
- {
- throw_exception(
- set_info(
- set_info(
- set_info(
- enable_error_info(x),
- throw_function(current_function)),
- throw_file(file)),
- throw_line(line)));
- }
- }
-#endif
-
 #ifdef BOOST_NO_EXCEPTIONS
 
 void throw_exception( std::exception const & e ); // user defined
@@ -86,6 +66,25 @@
 
 #endif
 
+#if !defined( BOOST_EXCEPTION_DISABLE )
+ namespace
+ exception_detail
+ {
+ template <class E>
+ void
+ throw_exception_( E const & x, char const * current_function, char const * file, int line )
+ {
+ boost::throw_exception(
+ set_info(
+ set_info(
+ set_info(
+ enable_error_info(x),
+ throw_function(current_function)),
+ throw_file(file)),
+ throw_line(line)));
+ }
+ }
+#endif
 } // namespace boost
 
 #endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED


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