#include <boost/preprocessor/cat.hpp> #include <boost/preprocessor/list/fold_left.hpp> #define LIST (a, (b, (c, BOOST_PP_NIL))) #define OP(d, state, x) BOOST_PP_CAT(state, x) BOOST_PP_LIST_FOLD_LEFT_2ND(OP, _, LIST) // expands to _abc
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)