forked from boostorg/preprocessor
Corrected fold_left to allow for maximum tests.
This commit is contained in:
@ -38,7 +38,8 @@
|
|||||||
# error Incorrect value for the BOOST_PP_LIMIT_SEQ limit
|
# error Incorrect value for the BOOST_PP_LIMIT_SEQ limit
|
||||||
# endif
|
# 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
|
# define BOOST_PP_SEQ_FOLD_LEFT_O(s, st, _) st
|
||||||
#
|
#
|
||||||
# if BOOST_PP_LIMIT_SEQ == 256
|
# if BOOST_PP_LIMIT_SEQ == 256
|
||||||
|
Reference in New Issue
Block a user