#include <boost/preprocessor/list/at.hpp> #define LIST (a, (b, (c, BOOST_PP_NIL))) BOOST_PP_LIST_AT(LIST, 0) // expands to a BOOST_PP_LIST_AT(LIST, 2) // expands to c
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)