limits.hpp 981 B

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