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