Maximum for loop

This commit is contained in:
Edward Diener
2020-07-11 05:04:00 -04:00
parent 0fbfe9c981
commit 28a0c21651
7 changed files with 16 additions and 5 deletions

View File

@ -16,14 +16,15 @@
#
# /* BOOST_PP_DEDUCE_R */
#
# include <boost/preprocessor/arithmetic/dec.hpp>
# include <boost/preprocessor/detail/auto_rec.hpp>
# include <boost/preprocessor/repetition/for.hpp>
# include <boost/preprocessor/config/limits.hpp>
#
# if BOOST_PP_LIMIT_FOR == 256
# define BOOST_PP_DEDUCE_R() BOOST_PP_AUTO_REC(BOOST_PP_FOR_P, 256)
# define BOOST_PP_DEDUCE_R() BOOST_PP_DEC(BOOST_PP_AUTO_REC(BOOST_PP_FOR_P, 256))
# elif BOOST_PP_LIMIT_FOR == 512
# define BOOST_PP_DEDUCE_R() BOOST_PP_AUTO_REC(BOOST_PP_FOR_P, 512)
# define BOOST_PP_DEDUCE_R() BOOST_PP_DEC(BOOST_PP_AUTO_REC(BOOST_PP_FOR_P, 512))
# else
# error Incorrect value for the BOOST_PP_LIMIT_FOR limit
# endif