diff --git a/test/std_interop_test10.cpp b/test/std_interop_test10.cpp index ef68af7..b470ca1 100644 --- a/test/std_interop_test10.cpp +++ b/test/std_interop_test10.cpp @@ -30,6 +30,15 @@ int main() 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 e2( 0, boost::system::generic_category() ); @@ -42,6 +51,15 @@ int main() 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(); }