From 4c201d26b22d53047065ca333ef6b1a233379d8c Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 24 Sep 2021 04:29:29 +0300 Subject: [PATCH] Update std_interop_test10 --- test/std_interop_test10.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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(); }