limits.hpp 901 B

12345678910111213141516171819202122232425
  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_VECTOR_LIMITS_07072005_1246)
  7. #define FUSION_VECTOR_LIMITS_07072005_1246
  8. #include <boost/fusion/support/config.hpp>
  9. #include <boost/fusion/support/detail/pp_round.hpp>
  10. #include <boost/preprocessor/stringize.hpp>
  11. #if !defined(FUSION_MAX_VECTOR_SIZE)
  12. # define FUSION_MAX_VECTOR_SIZE 10
  13. #else
  14. # if FUSION_MAX_VECTOR_SIZE < 3
  15. # undef FUSION_MAX_VECTOR_SIZE
  16. # define FUSION_MAX_VECTOR_SIZE 10
  17. # endif
  18. #endif
  19. #define FUSION_MAX_VECTOR_SIZE_STR BOOST_PP_STRINGIZE(BOOST_FUSION_PP_ROUND_UP(FUSION_MAX_VECTOR_SIZE))
  20. #endif