Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52263 - trunk/boost/exception
From: emil_at_[hidden]
Date: 2009-04-08 15:20:36


Author: emildotchevski
Date: 2009-04-08 15:20:35 EDT (Wed, 08 Apr 2009)
New Revision: 52263
URL: http://svn.boost.org/trac/boost/changeset/52263

Log:
BOOST_NO_EXCEPTIONS #ifdef
Text files modified:
   trunk/boost/exception/diagnostic_information.hpp | 10 ++++++++--
   1 files changed, 8 insertions(+), 2 deletions(-)

Modified: trunk/boost/exception/diagnostic_information.hpp
==============================================================================
--- trunk/boost/exception/diagnostic_information.hpp (original)
+++ trunk/boost/exception/diagnostic_information.hpp 2009-04-08 15:20:35 EDT (Wed, 08 Apr 2009)
@@ -8,7 +8,6 @@
 
 #include <boost/config.hpp>
 #include <boost/exception/get_error_info.hpp>
-#include <boost/exception/current_exception_cast.hpp>
 #include <boost/utility/enable_if.hpp>
 #include <exception>
 #include <sstream>
@@ -129,7 +128,13 @@
         {
         return exception_detail::std_diagnostic_information(e);
         }
+ }
 
+#ifndef BOOST_NO_EXCEPTIONS
+#include <boost/exception/current_exception_cast.hpp>
+namespace
+boost
+ {
     inline
     std::string
     current_exception_diagnostic_information()
@@ -141,6 +146,7 @@
         else
             return "No diagnostic information available.";
         }
- }
+ }
+#endif
 
 #endif


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