mirror of
https://github.com/boostorg/system.git
synced 2026-04-08 16:01:56 +02:00
Remove uses of BOOST_SYSTEM_HAS_SYSTEM_ERROR
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user