Remove uses of BOOST_SYSTEM_HAS_SYSTEM_ERROR

This commit is contained in:
Peter Dimov
2024-01-17 06:49:19 +02:00
parent 80e019069c
commit 3ded81eed0
33 changed files with 16 additions and 357 deletions

View File

@@ -32,8 +32,6 @@ sys::error_code make_error_code( E e )
return e == 0? sys::error_code(): sys::error_code( e, sys::generic_category() );
}
#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
enum E2
{
e2inval = EINVAL
@@ -57,8 +55,6 @@ std::error_code make_error_code( E2 e )
return std::error_code( e, std::generic_category() );
}
#endif
int main()
{
{
@@ -84,7 +80,7 @@ int main()
BOOST_TEST( ec.failed() );
BOOST_TEST( ec.has_location() );
BOOST_TEST_EQ( ec.location().line(), 77 );
BOOST_TEST_EQ( ec.location().line(), 73 );
}
{
@@ -134,7 +130,7 @@ int main()
BOOST_TEST( ec.failed() );
BOOST_TEST( ec.has_location() );
BOOST_TEST_EQ( ec.location().line(), 127 );
BOOST_TEST_EQ( ec.location().line(), 123 );
}
{
@@ -182,7 +178,7 @@ int main()
BOOST_TEST( ec.failed() );
BOOST_TEST( ec.has_location() );
BOOST_TEST_EQ( ec.location().line(), 175 );
BOOST_TEST_EQ( ec.location().line(), 171 );
}
{
@@ -209,8 +205,6 @@ int main()
BOOST_TEST_EQ( ec.location().line(), 0 );
}
#if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR)
{
sys::error_code ec( e2inval );
@@ -281,7 +275,5 @@ int main()
BOOST_TEST_EQ( ec.location().line(), 0 );
}
#endif
return boost::report_errors();
}