]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/preprocessor/repetition/deduce_r.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / preprocessor / repetition / deduce_r.hpp
index e49296aebcc9c0c7c3feb32c790ee6019e9effb7..6fe30d6ad7b406871b5343586bfb492083b571b9 100644 (file)
@@ -7,11 +7,17 @@
 #  *                                                                          *
 #  ************************************************************************** */
 #
+# /* Revised by Edward Diener (2020) */
+#
 # /* See http://www.boost.org for most recent version. */
 #
 # ifndef BOOST_PREPROCESSOR_REPETITION_DEDUCE_R_HPP
 # define BOOST_PREPROCESSOR_REPETITION_DEDUCE_R_HPP
 #
+# include <boost/preprocessor/config/config.hpp>
+#
+# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
+#
 # include <boost/preprocessor/detail/auto_rec.hpp>
 # include <boost/preprocessor/repetition/for.hpp>
 #
 #
 # define BOOST_PP_DEDUCE_R() BOOST_PP_AUTO_REC(BOOST_PP_FOR_P, 256)
 #
+# else
+#
+# /* 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_DEC(BOOST_PP_AUTO_REC(BOOST_PP_FOR_P, 256))
+# elif BOOST_PP_LIMIT_FOR == 512
+# define BOOST_PP_DEDUCE_R() BOOST_PP_DEC(BOOST_PP_AUTO_REC(BOOST_PP_FOR_P, 512))
+# elif BOOST_PP_LIMIT_FOR == 1024
+# define BOOST_PP_DEDUCE_R() BOOST_PP_DEC(BOOST_PP_AUTO_REC(BOOST_PP_FOR_P, 1024))
+# else
+# error Incorrect value for the BOOST_PP_LIMIT_FOR limit
+# endif
+#
+# endif
+#
 # endif