Tweaks to try to defeat g++4.6.3

This commit is contained in:
Emil Dotchevski
2017-01-03 14:35:11 -08:00
parent 406d3c87f7
commit 972667f52e
3 changed files with 29 additions and 61 deletions

View File

@ -16,14 +16,14 @@ typedef boost::error_info<struct error_info_string_, std::string> error_info_str
int
main()
{
try
{
throw my_exception() << error_info_string("doh");
}
catch( my_exception & e )
{
BOOST_TEST(boost::get_error_info<error_info_string>(e) && !strcmp(boost::get_error_info<error_info_string>(e)->c_str(),"doh"));
}
{
try
{
throw my_exception() << error_info_string("doh");
}
catch( my_exception & e )
{
BOOST_TEST(boost::get_error_info<error_info_string>(e) && !strcmp(boost::get_error_info<error_info_string>(e)->c_str(),"doh"));
}
return 0;
}
}