#include <boost/preprocessor/set/to_array.hpp> #define SET (a)(b)(c) BOOST_PP_SET_TO_ARRAY(SET) // expands to (3, (a, b, c))