From c4bb59617c054b0ac45ebaab44a4cbd24fccc758 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 7 Feb 2024 04:55:07 +0200 Subject: [PATCH] Disable sv_construct_test_cx2 for libstdc++ 7.2 and earlier --- test/sv_construct_test_cx2.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/sv_construct_test_cx2.cpp b/test/sv_construct_test_cx2.cpp index 98c82fd..276d158 100644 --- a/test/sv_construct_test_cx2.cpp +++ b/test/sv_construct_test_cx2.cpp @@ -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__)