Disable std::vector as underlying sequence in old GCCs as we have compilation errors due to unsupported features.

This commit is contained in:
Ion Gaztañaga
2024-09-09 13:53:24 +02:00
parent e9db423fb6
commit 12afa8457f
2 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,7 @@
#include <boost/move/iterator.hpp>
#include <boost/move/utility_core.hpp>
#include <boost/move/adl_move_swap.hpp>
#include <cstdlib>
#include <map>
#include "map_test.hpp"

View File

@ -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 <vector>
namespace boost{
@ -120,6 +124,7 @@ template class flat_tree
} //dtl {
}} //boost::container
#endif
#endif
int main ()