From fb463f9faf0404806932d4e30faf1c91011d6b1b Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Thu, 19 Sep 2013 06:01:46 +0000 Subject: [PATCH] Disabled demangling to break the dependency Exception -> Units -> Algorithms -> Range -> Concepts. [SVN r85783] --- include/boost/exception/detail/exception_ptr.hpp | 8 ++++++-- include/boost/exception/detail/type_info.hpp | 10 +++++----- include/boost/exception/diagnostic_information.hpp | 8 ++++---- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/include/boost/exception/detail/exception_ptr.hpp b/include/boost/exception/detail/exception_ptr.hpp index ff2f677..36298fa 100644 --- a/include/boost/exception/detail/exception_ptr.hpp +++ b/include/boost/exception/detail/exception_ptr.hpp @@ -21,7 +21,9 @@ #include #include #include -#include +//#ifndef BOOST_NO_RTTI +//#include +//#endif #include #include #include @@ -90,7 +92,7 @@ boost std::string to_string( original_exception_type const & x ) { - return units::detail::demangle(x.value()->name()); + return /*units::detail::demangle*/(x.value()->name()); } #endif @@ -119,10 +121,12 @@ boost { Exception ba; exception_detail::clone_impl c(ba); +#ifndef BOOST_EXCEPTION_DISABLE c << throw_function(BOOST_CURRENT_FUNCTION) << throw_file(__FILE__) << throw_line(__LINE__); +#endif static exception_ptr ep(shared_ptr(new exception_detail::clone_impl(c))); return ep; } diff --git a/include/boost/exception/detail/type_info.hpp b/include/boost/exception/detail/type_info.hpp index 15fa1c4..0af8ef5 100644 --- a/include/boost/exception/detail/type_info.hpp +++ b/include/boost/exception/detail/type_info.hpp @@ -15,9 +15,9 @@ #include #include #include -#ifndef BOOST_NO_TYPEID -#include -#endif +//#ifndef BOOST_NO_TYPEID +//#include +//#endif #include namespace @@ -31,7 +31,7 @@ boost #ifdef BOOST_NO_TYPEID return BOOST_CURRENT_FUNCTION; #else - return units::detail::demangle(typeid(T*).name()); + return /*units::detail::demangle*/(typeid(T*).name()); #endif } @@ -43,7 +43,7 @@ boost #ifdef BOOST_NO_TYPEID return BOOST_CURRENT_FUNCTION; #else - return units::detail::demangle(typeid(T).name()); + return /*units::detail::demangle*/(typeid(T).name()); #endif } diff --git a/include/boost/exception/diagnostic_information.hpp b/include/boost/exception/diagnostic_information.hpp index 5ac8c6b..7889c8f 100644 --- a/include/boost/exception/diagnostic_information.hpp +++ b/include/boost/exception/diagnostic_information.hpp @@ -16,9 +16,9 @@ #include #include #include -#ifndef BOOST_NO_RTTI -#include -#endif +//#ifndef BOOST_NO_RTTI +//#include +//#endif #include #include #include @@ -151,7 +151,7 @@ boost #ifndef BOOST_NO_RTTI if ( verbose ) tmp << std::string("Dynamic exception type: ") << - units::detail::demangle((be?(BOOST_EXCEPTION_DYNAMIC_TYPEID(*be)):(BOOST_EXCEPTION_DYNAMIC_TYPEID(*se))).type_->name()) << '\n'; + /*units::detail::demangle*/((be?(BOOST_EXCEPTION_DYNAMIC_TYPEID(*be)):(BOOST_EXCEPTION_DYNAMIC_TYPEID(*se))).type_->name()) << '\n'; #endif if( with_what && se && verbose ) tmp << "std::exception::what: " << wh << '\n';