# /* ************************************************************************** # * * # * (C) Copyright Edward Diener 2011. * # * (C) Copyright Paul Mensonides 2011. * # * Distributed under the Boost Software License, Version 1.0. (See * # * accompanying file LICENSE_1_0.txt or copy at * # * http://www.boost.org/LICENSE_1_0.txt) * # * * # ************************************************************************** */ # # /* See http://www.boost.org for most recent version. */ # # ifndef ACTIV_BOOST_PREPROCESSOR_ARRAY_TO_SEQ_HPP # define ACTIV_BOOST_PREPROCESSOR_ARRAY_TO_SEQ_HPP # # include # include # include # include # include # # /* ACTIV_BOOST_PP_ARRAY_TO_SEQ */ # # define ACTIV_BOOST_PP_ARRAY_TO_SEQ(array) \ ACTIV_BOOST_PP_IF \ ( \ ACTIV_BOOST_PP_ARRAY_SIZE(array), \ ACTIV_BOOST_PP_ARRAY_TO_SEQ_DO, \ ACTIV_BOOST_PP_ARRAY_TO_SEQ_EMPTY \ ) \ (array) \ /**/ # define ACTIV_BOOST_PP_ARRAY_TO_SEQ_EMPTY(array) # # if ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_MSVC() # define ACTIV_BOOST_PP_ARRAY_TO_SEQ_DO(array) ACTIV_BOOST_PP_ARRAY_TO_SEQ_I(ACTIV_BOOST_PP_TUPLE_TO_SEQ, array) # define ACTIV_BOOST_PP_ARRAY_TO_SEQ_I(m, args) ACTIV_BOOST_PP_ARRAY_TO_SEQ_II(m, args) # define ACTIV_BOOST_PP_ARRAY_TO_SEQ_II(m, args) ACTIV_BOOST_PP_CAT(m ## args,) # elif ACTIV_BOOST_PP_CONFIG_FLAGS() & ACTIV_BOOST_PP_CONFIG_MWCC() # define ACTIV_BOOST_PP_ARRAY_TO_SEQ_DO(array) ACTIV_BOOST_PP_ARRAY_TO_SEQ_I(array) # define ACTIV_BOOST_PP_ARRAY_TO_SEQ_I(array) ACTIV_BOOST_PP_TUPLE_TO_SEQ ## array # else # define ACTIV_BOOST_PP_ARRAY_TO_SEQ_DO(array) ACTIV_BOOST_PP_TUPLE_TO_SEQ array # endif # # endif