mirror of
https://github.com/boostorg/container.git
synced 2025-07-30 20:47:17 +02:00
Disable std::vector as underlying sequence in old GCCs as we have compilation errors due to unsupported features.
This commit is contained in:
@ -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"
|
||||
|
@ -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 ()
|
||||
|
Reference in New Issue
Block a user