From 2d5be208de52e37df0987a41b8b7e27edb63a99f Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Wed, 8 Apr 2009 19:20:35 +0000 Subject: [PATCH] BOOST_NO_EXCEPTIONS #ifdef [SVN r52263] --- include/boost/exception/diagnostic_information.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/boost/exception/diagnostic_information.hpp b/include/boost/exception/diagnostic_information.hpp index 66deb70..cea07df 100644 --- a/include/boost/exception/diagnostic_information.hpp +++ b/include/boost/exception/diagnostic_information.hpp @@ -8,7 +8,6 @@ #include #include -#include #include #include #include @@ -129,7 +128,13 @@ boost { return exception_detail::std_diagnostic_information(e); } + } +#ifndef BOOST_NO_EXCEPTIONS +#include +namespace +boost + { inline std::string current_exception_diagnostic_information() @@ -141,6 +146,7 @@ boost else return "No diagnostic information available."; } - } + } +#endif #endif