fixing bug in printing failure info in exception_ptr_test.cpp

[SVN r59419]
This commit is contained in:
Emil Dotchevski
2010-02-01 17:52:20 +00:00
parent a955aa431e
commit 1af9381775

View File

@ -11,6 +11,7 @@
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <iostream>
class thread_handle;
boost::shared_ptr<thread_handle> create_thread( boost::function<void()> const & f );
@ -102,7 +103,10 @@ main()
catch(
... )
{
BOOST_ERROR(boost::current_exception_diagnostic_information().c_str());
std::cerr <<
"Caught unexpected exception.\n"
"Output from current_exception_diagnostic_information:\n" <<
boost::current_exception_diagnostic_information() << std::endl;
return 42;
}
}