Disable failing tests on g++-7/c++17

This commit is contained in:
Peter Dimov
2021-06-12 22:20:38 +03:00
parent d019c1cdae
commit b20191f8d7

View File

@ -35,16 +35,28 @@ BOOST_STATIC_ASSERT( !ec3 );
constexpr error_condition en1( 1, system_category() );
#if __GNUC__ == 7 && __cplusplus == 201703L
// `cat_ != 0` is not a constant expression
#else
BOOST_STATIC_ASSERT( en1.failed() );
BOOST_STATIC_ASSERT( en1 );
BOOST_STATIC_ASSERT( !!en1 );
#endif
constexpr error_condition en2( 2, generic_category() );
#if __GNUC__ == 7 && __cplusplus == 201703L
// `cat_ != 0` is not a constant expression
#else
BOOST_STATIC_ASSERT( en2.failed() );
BOOST_STATIC_ASSERT( en2 );
BOOST_STATIC_ASSERT( !!en2 );
#endif
constexpr error_condition en3;
BOOST_STATIC_ASSERT( !en3.failed() );