1 #ifndef BOOST_METAPARSE_V1_CPP98_IMPL_POP_FRONT_HPP
2 #define BOOST_METAPARSE_V1_CPP98_IMPL_POP_FRONT_HPP
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 #include <boost/metaparse/v1/cpp98/fwd/string.hpp>
11 #include <boost/preprocessor/repetition/enum_params.hpp>
12 #include <boost/preprocessor/repetition/repeat_from_to.hpp>
25 #ifdef BOOST_METAPARSE_POP_FRONT
26 # error BOOST_METAPARSE_POP_FRONT already defined
28 #define BOOST_METAPARSE_POP_FRONT(z, n, unused) \
29 BOOST_PP_COMMA_IF(BOOST_PP_DEC(n)) BOOST_PP_CAT(C, n)
32 BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_STRING_SIZE, int C) \
36 string<BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_STRING_SIZE, C)>
39 BOOST_PP_REPEAT_FROM_TO(
41 BOOST_METAPARSE_LIMIT_STRING_SIZE,
42 BOOST_METAPARSE_POP_FRONT,
49 #undef BOOST_METAPARSE_POP_FRONT