From ff4944f0ec6122d7d3a36a09f20975c04ef1c25b Mon Sep 17 00:00:00 2001 From: Bruno Dutra Date: Sun, 8 Feb 2015 17:07:22 -0200 Subject: [PATCH] using BOOST_PP_ENUM_PARAMS to generate base seq accordingly hardcoding a base seq from 0 to 9 was the culprit behind Ticket #7769 --- include/boost/mpl/aux_/preprocessor/range.hpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/include/boost/mpl/aux_/preprocessor/range.hpp b/include/boost/mpl/aux_/preprocessor/range.hpp index 54094ee..adc1f46 100644 --- a/include/boost/mpl/aux_/preprocessor/range.hpp +++ b/include/boost/mpl/aux_/preprocessor/range.hpp @@ -15,9 +15,23 @@ // $Revision$ #include +#include +#include +#include +#include +#include +#undef BOOST_MPL_PP_RANGE #define BOOST_MPL_PP_RANGE(first, length) \ - BOOST_PP_SEQ_SUBSEQ((0)(1)(2)(3)(4)(5)(6)(7)(8)(9), first, length) \ + BOOST_PP_SEQ_SUBSEQ( \ + BOOST_PP_TUPLE_TO_SEQ( \ + BOOST_PP_ADD(first, length), \ + BOOST_PP_LPAREN() \ + BOOST_PP_ENUM_PARAMS(BOOST_PP_ADD(first, length), BOOST_PP_EMPTY()) \ + BOOST_PP_RPAREN() \ + ), \ + first, length \ + ) \ /**/ #endif // BOOST_MPL_AUX_PREPROCESSOR_RANGE_HPP_INCLUDED