From 794436c3ae10458ec34969749d85dd71ab0d0fb6 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Wed, 8 Apr 2009 19:21:40 +0000 Subject: [PATCH] BOOST_NO_EXCEPTIONS #ifdef [SVN r52264] --- 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