From 13180fd601def3648f39782ded1ff2cc0aa5aae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 9 Sep 2024 13:53:24 +0200 Subject: [PATCH] Disable std::vector as underlying sequence in old GCCs as we have compilation errors due to unsupported features. --- test/flat_map_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/flat_map_test.cpp b/test/flat_map_test.cpp index debd722c..1bb8e4a5 100644 --- a/test/flat_map_test.cpp +++ b/test/flat_map_test.cpp @@ -612,6 +612,8 @@ int main() boost::has_trivial_destructor_after_move::value , "has_trivial_destructor_after_move(flat_map, vector) test failed"); } + //Old GCCs have problems (compiler bugs) with std::vector and flat_xxx + #if !defined(BOOST_GCC) || (BOOST_GCC < 50000) // flat_map, std::vector { typedef std::vector alloc_or_cont_t; @@ -621,6 +623,7 @@ int main() boost::has_trivial_destructor_after_move::value , "has_trivial_destructor_after_move(flat_map, std::vector) test failed"); } + #endif // flat_multimap, default { typedef boost::container::new_allocator alloc_or_cont_t; @@ -639,6 +642,8 @@ int main() boost::has_trivial_destructor_after_move::value , "has_trivial_destructor_after_move(flat_multimap, vector) test failed"); } + //Old GCCs have problems (compiler bugs) with std::vector and flat_xxx + #if !defined(BOOST_GCC) || (BOOST_GCC < 50000) // flat_multimap, std::vector { typedef std::vector alloc_or_cont_t; @@ -648,6 +653,7 @@ int main() boost::has_trivial_destructor_after_move::value , "has_trivial_destructor_after_move(flat_multimap, std::vector) test failed"); } + #endif } return 0;