#include <boost/throw_exception.hpp>
#include <boost/exception/info.hpp>
#include <boost/exception/diagnostic_information.hpp>
-#include <boost/detail/lightweight_test.hpp>
+#include <boost/core/lightweight_test.hpp>
#include <stdlib.h>
struct
std::exception
{
char const *
- what() const throw()
+ what() const BOOST_NOEXCEPT_OR_NOTHROW
{
return "my_exception";
}
#ifndef BOOST_NO_RTTI
BOOST_TEST(s.find("my_tag")!=std::string::npos);
#endif
- exit(0);
+ exit(boost::report_errors());
}
}