diff --git a/include/boost/preprocessor/for.hpp b/include/boost/preprocessor/for.hpp index 6c91db4..c0df36c 100644 --- a/include/boost/preprocessor/for.hpp +++ b/include/boost/preprocessor/for.hpp @@ -40,12 +40,11 @@ literal. F(R,X) usually expands to a tuple of the same number of elements. - I is the state instantiation macro. - R is the recursion depth and should only be used as a parameter to -other macros implemented using BOOST_PP_FOR() or for invoking -BOOST_PP_FOR##R() directly. For each macro implemented using BOOST_PP_FOR(), -there is a version of the macro, distinguished by the R suffix, that accepts -an additional recursion depth as the first parameter. This technique is -necessary to avoid recursively expanding the same macro again, which is not -permitted by the C++ preprocessor. +other macros using BOOST_PP_FOR() or for invoking BOOST_PP_FOR##R() directly. +For each macro using BOOST_PP_FOR(), there is a version of the macro, +distinguished by the R suffix, that accepts an additional recursion depth as +the first parameter. This technique is necessary to avoid recursively +expanding the same macro again, which is not permitted by the C++ preprocessor.

BOOST_PP_REPEAT() vs BOOST_PP_FOR()

diff --git a/include/boost/preprocessor/while.hpp b/include/boost/preprocessor/while.hpp index 0af7612..f22874f 100644 --- a/include/boost/preprocessor/while.hpp +++ b/include/boost/preprocessor/while.hpp @@ -39,13 +39,12 @@ integer literal. - F is the iterated macro. Note that if the state is a tuple, then F(D,X) usually expands to a tuple of the same number of elements. - D is the recursion depth and should only be used as a parameter -to other macros implemented using BOOST_PP_WHILE(). Such macros include -BOOST_PP_ADD() and other arithmetic operations. For each macro implemented -using BOOST_PP_WHILE(), there is a version of the macro, distinguished by -the D suffix (e.g. BOOST_PP_ADD_D()), that accepts an additional recursion -depth as the first parameter. This technique is necessary to avoid -recursively expanding the same macro again, which is not permitted by the -C++ preprocessor. +to other macros using BOOST_PP_WHILE(). Such macros include BOOST_PP_ADD() +and other arithmetic operations. For each macro using BOOST_PP_WHILE(), +there is a version of the macro, distinguished by the D suffix (e.g. +BOOST_PP_ADD_D()), that accepts an additional recursion depth as the first +parameter. This technique is necessary to avoid recursively expanding the +same macro again, which is not permitted by the C++ preprocessor. NOTE: The value of the D parameter may exceed BOOST_PP_LIMIT_MAG.