From c8e005f6967f3fada3908c544000f361dc534d6d Mon Sep 17 00:00:00 2001 From: Edward Diener Date: Fri, 10 Jul 2020 12:19:38 -0400 Subject: [PATCH] Corrected fold_left to allow for maximum tests. --- include/boost/preprocessor/seq/fold_left.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/preprocessor/seq/fold_left.hpp b/include/boost/preprocessor/seq/fold_left.hpp index cf51f15..b249816 100644 --- a/include/boost/preprocessor/seq/fold_left.hpp +++ b/include/boost/preprocessor/seq/fold_left.hpp @@ -38,7 +38,8 @@ # error Incorrect value for the BOOST_PP_LIMIT_SEQ limit # endif # -# define BOOST_PP_SEQ_FOLD_LEFT_P(n) BOOST_PP_CAT(BOOST_PP_SEQ_FOLD_LEFT_CHECK_, BOOST_PP_SEQ_FOLD_LEFT_I_ ## n(BOOST_PP_SEQ_FOLD_LEFT_O, BOOST_PP_NIL, (nil), 1)) +# define BOOST_PP_SEQ_FOLD_LEFT_P(n) BOOST_PP_SEQ_FOLD_LEFT_P_DEC(BOOST_PP_DEC(n)) +# define BOOST_PP_SEQ_FOLD_LEFT_P_DEC(n) BOOST_PP_CAT(BOOST_PP_SEQ_FOLD_LEFT_CHECK_, BOOST_PP_CAT(BOOST_PP_SEQ_FOLD_LEFT_I_,n)(BOOST_PP_SEQ_FOLD_LEFT_O, BOOST_PP_NIL, (nil), 1)) # define BOOST_PP_SEQ_FOLD_LEFT_O(s, st, _) st # # if BOOST_PP_LIMIT_SEQ == 256