BOOST_PP expand sequence in the empty sequence case
问题 Using BOOST_PP I can expand a macro into multiple comma separated values with an additional token, as can be seen in the below code. However, it doesn't work in the no-argument case. #define BOOST_PP_VARIADICS #include <boost/preprocessor/punctuation/comma_if.hpp> #include <boost/preprocessor/seq/for_each_i.hpp> #include <boost/preprocessor/variadic/to_seq.hpp> #define ADD_TOKEN(r, token, i, e) \ BOOST_PP_COMMA_IF(i) token(e) #define WRAP(...) \ BOOST_PP_SEQ_FOR_EACH_I(ADD_TOKEN, decltype,