mirror of
https://github.com/boostorg/exception.git
synced 2025-07-17 22:42:06 +02:00
Ticket 9069, thanks sarum9in
[SVN r85634]
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -21,6 +21,7 @@
|
|||||||
#include <boost/exception/diagnostic_information.hpp>
|
#include <boost/exception/diagnostic_information.hpp>
|
||||||
#include <boost/exception/detail/type_info.hpp>
|
#include <boost/exception/detail/type_info.hpp>
|
||||||
#include <boost/exception/detail/clone_current_exception.hpp>
|
#include <boost/exception/detail/clone_current_exception.hpp>
|
||||||
|
#include <boost/units/detail/utility.hpp>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <new>
|
#include <new>
|
||||||
@ -89,7 +90,7 @@ boost
|
|||||||
std::string
|
std::string
|
||||||
to_string( original_exception_type const & x )
|
to_string( original_exception_type const & x )
|
||||||
{
|
{
|
||||||
return x.value()->name();
|
return units::detail::demangle(x.value()->name());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -143,6 +143,8 @@ test_std_exception()
|
|||||||
#ifndef BOOST_NO_RTTI
|
#ifndef BOOST_NO_RTTI
|
||||||
std::type_info const * const * t=boost::get_error_info<boost::original_exception_type>(x);
|
std::type_info const * const * t=boost::get_error_info<boost::original_exception_type>(x);
|
||||||
BOOST_TEST(t!=0 && *t!=0 && **t==typeid(T));
|
BOOST_TEST(t!=0 && *t!=0 && **t==typeid(T));
|
||||||
|
std::string s=diagnostic_information(x);
|
||||||
|
BOOST_TEST(!s.empty());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
catch(
|
catch(
|
||||||
|
Reference in New Issue
Block a user