Ticket 9069, thanks sarum9in

[SVN r85634]
This commit is contained in:
Emil Dotchevski
2013-09-10 05:05:41 +00:00
parent e97bcb4c56
commit 2a68f099bf
3 changed files with 7368 additions and 7373 deletions

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,7 @@
#include <boost/exception/diagnostic_information.hpp>
#include <boost/exception/detail/type_info.hpp>
#include <boost/exception/detail/clone_current_exception.hpp>
#include <boost/units/detail/utility.hpp>
#include <boost/shared_ptr.hpp>
#include <stdexcept>
#include <new>
@ -89,7 +90,7 @@ boost
std::string
to_string( original_exception_type const & x )
{
return x.value()->name();
return units::detail::demangle(x.value()->name());
}
#endif

View File

@ -143,6 +143,8 @@ test_std_exception()
#ifndef BOOST_NO_RTTI
std::type_info const * const * t=boost::get_error_info<boost::original_exception_type>(x);
BOOST_TEST(t!=0 && *t!=0 && **t==typeid(T));
std::string s=diagnostic_information(x);
BOOST_TEST(!s.empty());
#endif
}
catch(