Boost C++ Libraries: Ticket #4911: ENH: boost.test output the exception real type name. https://svn.boost.org/trac10/ticket/4911 <p> boost\test\impl\execution_monitor.ipp int execution_monitor::execute( unit_test::callback0&lt;int&gt; const&amp; 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() </p> <blockquote> <p> try { </p> <blockquote> <p> return catch_signals( F ); </p> </blockquote> <p> } catch( std::bad_exception const&amp; ex ) </p> <blockquote> <p> { detail::report_error( execution_exception::cpp_exception_error, </p> <blockquote> <p> current_exception_cast&lt;boost::exception const&gt;(), "std::bad_exception: %s: %s", </p> </blockquote> </blockquote> </blockquote> <p> typeid(ex).name(), ex.what() ); <em>output typeid(ex).name(). } </em></p> <blockquote> <p> catch( std::domain_error const&amp; ex ) </p> <blockquote> <p> { detail::report_error( execution_exception::cpp_exception_error, </p> <blockquote> <p> current_exception_cast&lt;boost::exception const&gt;(), </p> </blockquote> <p> "std::domain_error: %s", ex.what() ); <em> current version 1.45, wo lost the type info. </em></p> </blockquote> </blockquote> <blockquote> <p> } </p> </blockquote> <p> ....... </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4911 Trac 1.4.3 Vicente Botet <vicente.botet@…> Tue, 30 Nov 2010 17:54:01 GMT component changed; owner set https://svn.boost.org/trac10/ticket/4911#comment:1 https://svn.boost.org/trac10/ticket/4911#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Gennadiy Rozental</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">test</span> </li> </ul> Ticket Gennadiy Rozental Mon, 17 Oct 2011 07:21:02 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4911#comment:2 https://svn.boost.org/trac10/ticket/4911#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/75004" title="use typeid to report &#34;real&#34; exception type if possible. Fixes #4911">[75004]</a>) use typeid to report "real" exception type if possible. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4911" title="#4911: Feature Requests: ENH: boost.test output the exception real type name. (closed: fixed)">#4911</a> </p> Ticket Raffi Enficiaud Tue, 07 Jul 2015 08:16:57 GMT milestone changed https://svn.boost.org/trac10/ticket/4911#comment:3 https://svn.boost.org/trac10/ticket/4911#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.59.0</span> </li> </ul> Ticket