Disable sv_construct_test_cx2 for libstdc++ 7.2 and earlier

This commit is contained in:
Peter Dimov 2024-02-07 04:55:07 +02:00
parent 2d7e036416
commit c4bb59617c

View File

@ -18,6 +18,13 @@ int main() {}
BOOST_PRAGMA_MESSAGE( "Test skipped because BOOST_CXX_VERSION < 201703L" )
int main() {}
#elif defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 70300
// std::char_traits is not constexpr in libstdc++ 7.2
BOOST_PRAGMA_MESSAGE( "Test skipped because BOOST_LIBSTDCXX_VERSION < 70300" )
int main() {}
#else
#define STATIC_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS__)