forked from boostorg/preprocessor
Increased while loops by one to encompass maximum numbers.
This commit is contained in:
@ -16,14 +16,15 @@
|
||||
#
|
||||
# /* BOOST_PP_DEDUCE_D */
|
||||
#
|
||||
# include <boost/preprocessor/arithmetic/dec.hpp>
|
||||
# include <boost/preprocessor/control/while.hpp>
|
||||
# include <boost/preprocessor/detail/auto_rec.hpp>
|
||||
# include <boost/preprocessor/config/limits.hpp>
|
||||
#
|
||||
# if BOOST_PP_LIMIT_WHILE == 256
|
||||
# define BOOST_PP_DEDUCE_D() BOOST_PP_AUTO_REC(BOOST_PP_WHILE_P, 256)
|
||||
# define BOOST_PP_DEDUCE_D() BOOST_PP_DEC(BOOST_PP_AUTO_REC(BOOST_PP_WHILE_P, 256))
|
||||
# elif BOOST_PP_LIMIT_WHILE == 512
|
||||
# define BOOST_PP_DEDUCE_D() BOOST_PP_AUTO_REC(BOOST_PP_WHILE_P, 512)
|
||||
# define BOOST_PP_DEDUCE_D() BOOST_PP_DEC(BOOST_PP_AUTO_REC(BOOST_PP_WHILE_P, 512))
|
||||
# else
|
||||
# error Incorrect value for the BOOST_PP_LIMIT_WHILE limit
|
||||
# endif
|
||||
|
Reference in New Issue
Block a user