1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(FUSION_MAP_LIMITS_07212005_1104)
8 #define FUSION_MAP_LIMITS_07212005_1104
10 #include <boost/fusion/support/config.hpp>
11 #include <boost/fusion/container/vector/detail/cpp03/limits.hpp>
13 #if !defined(FUSION_MAX_MAP_SIZE)
14 # define FUSION_MAX_MAP_SIZE FUSION_MAX_VECTOR_SIZE
16 # if FUSION_MAX_MAP_SIZE < 3
17 # undef FUSION_MAX_MAP_SIZE
18 # if (FUSION_MAX_VECTOR_SIZE > 10)
19 # define FUSION_MAX_MAP_SIZE 10
21 # define FUSION_MAX_MAP_SIZE FUSION_MAX_VECTOR_SIZE
26 #define FUSION_MAX_MAP_SIZE_STR BOOST_PP_STRINGIZE(BOOST_FUSION_PP_ROUND_UP(FUSION_MAX_MAP_SIZE))