#include <boost/preprocessor/list/reverse.hpp> #define LIST (0, (1, (2, (3, BOOST_PP_NIL)))) BOOST_PP_LIST_REVERSE(LIST) // expands to (3, (2, (1, (0, BOOST_PP_NIL))))
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)