#include <boost/preprocessor/list/enum.hpp> #define LIST (w, (x, (y, (z, BOOST_PP_NIL)))) BOOST_PP_LIST_ENUM(LIST) // w, x, y, z に展開される