mirror of
https://github.com/boostorg/system.git
synced 2025-07-31 04:57:13 +02:00
Update std_interop_test10
This commit is contained in:
@ -30,6 +30,15 @@ int main()
|
|||||||
BOOST_TEST_EQ( e3, e4 );
|
BOOST_TEST_EQ( e3, e4 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
boost::system::error_code e1;
|
||||||
|
|
||||||
|
std::error_code e2( e1 );
|
||||||
|
std::error_code e3( e1.value(), e1.category() );
|
||||||
|
|
||||||
|
BOOST_TEST_EQ( e2, e3 );
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
boost::system::error_condition e1;
|
boost::system::error_condition e1;
|
||||||
boost::system::error_condition e2( 0, boost::system::generic_category() );
|
boost::system::error_condition e2( 0, boost::system::generic_category() );
|
||||||
@ -42,6 +51,15 @@ int main()
|
|||||||
BOOST_TEST( e3 == e4 );
|
BOOST_TEST( e3 == e4 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
boost::system::error_condition e1;
|
||||||
|
|
||||||
|
std::error_condition e2( e1 );
|
||||||
|
std::error_condition e3( e1.value(), e1.category() );
|
||||||
|
|
||||||
|
BOOST_TEST( e2 == e3 );
|
||||||
|
}
|
||||||
|
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user