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