From 12afa8457ffc855b8f2a3dcdb79aa316ca2196ac 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.hpp | 1 + test/flat_tree_test.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/test/flat_map_test.hpp b/test/flat_map_test.hpp index fa261c1..46ee506 100644 --- a/test/flat_map_test.hpp +++ b/test/flat_map_test.hpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include "map_test.hpp" diff --git a/test/flat_tree_test.cpp b/test/flat_tree_test.cpp index 78feb75..f62cd8b 100644 --- a/test/flat_tree_test.cpp +++ b/test/flat_tree_test.cpp @@ -97,6 +97,10 @@ template class flat_tree }} //boost::container #if (BOOST_CXX_VERSION >= 201103L) +//Old GCCs have problems (compiler bugs) with std::vector and flat_xxx +#if !defined(BOOST_GCC) || (BOOST_GCC < 50000) +// flat_map, std::vector + #include namespace boost{ @@ -120,6 +124,7 @@ template class flat_tree } //dtl { }} //boost::container +#endif #endif int main ()