Update system_error::what to use error_code::what

This commit is contained in:
Peter Dimov
2021-10-02 15:00:40 +03:00
parent 01676ae42f
commit bb775c071a
6 changed files with 60 additions and 28 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ int main()
boost::system::system_error x( bc, "prefix" );
BOOST_TEST_EQ( x.code(), bc );
BOOST_TEST_EQ( std::string( x.what() ), "prefix: " + bc.message() );
BOOST_TEST_EQ( std::string( x.what() ), "prefix: " + bc.what() );
return boost::report_errors();
}