[Boost-bugs] [Boost C++ Libraries] #4911: ENH: boost.test output the exception real type name.

Subject: [Boost-bugs] [Boost C++ Libraries] #4911: ENH: boost.test output the exception real type name.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-30 07:40:32


#4911: ENH: boost.test output the exception real type name.
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner:
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.45.0 | Severity: Optimization
 Keywords: |
------------------------------+---------------------------------------------
 boost\test\impl\execution_monitor.ipp
 int
 execution_monitor::execute( unit_test::callback0<int> const& F )
 we loss the real type of the exception,
 why not output it like this:
 "std::bad_exception: %s: %s", typeid(ex).name(), ex.what()


  try {
         return catch_signals( F );
     } catch( std::bad_exception const& ex )
       { detail::report_error( execution_exception::cpp_exception_error,
                               current_exception_cast<boost::exception
 const>(),
                               "std::bad_exception: %s: %s",
 typeid(ex).name(), ex.what() ); //output typeid(ex).name().
 }
     catch( std::domain_error const& ex )
       { detail::report_error( execution_exception::cpp_exception_error,
                               current_exception_cast<boost::exception
 const>(),
       "std::domain_error: %s", ex.what() ); // current version 1.45, wo
 lost the type info.
  }
 .......

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4911>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC