From 76185abe8049b7db34a8a4515a8364f6632bb378 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sat, 30 Dec 2023 19:41:13 +0100 Subject: [PATCH] extended workaround to GCC 4.9 --- test/cfoa/insert_tests.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/cfoa/insert_tests.cpp b/test/cfoa/insert_tests.cpp index 229f0324..3350c691 100644 --- a/test/cfoa/insert_tests.cpp +++ b/test/cfoa/insert_tests.cpp @@ -156,7 +156,10 @@ namespace { BOOST_WORKAROUND(BOOST_GCC_VERSION, < 50500) // some versions of old gcc have trouble eliding copies here // https://godbolt.org/z/Ebo6TbvaG -#else +#elif BOOST_WORKAROUND(BOOST_GCC_VERSION, >= 40900) && \ + BOOST_WORKAROUND(BOOST_GCC_VERSION, < 50000) + // seemingly same problem, though the snippet above does not reveal it +#else BOOST_TEST_EQ(raii::copy_constructor, 0u); #endif BOOST_TEST_EQ(raii::copy_assignment, 0u);