#include <boost/preprocessor/variadic/elem.hpp>
#define VAR_DATA a, b, c, d
BOOST_PP_VARIADIC_ELEM(0, VAR_DATA) // expands to a
BOOST_PP_VARIADIC_ELEM(3, VAR_DATA) // expands to d
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)