1 #ifndef BOOST_METAPARSE_V1_CPP98_IMPL_AT_C_HPP
2 #define BOOST_METAPARSE_V1_CPP98_IMPL_AT_C_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/config.hpp>
10 #include <boost/metaparse/v1/cpp98/fwd/string.hpp>
12 #include <boost/mpl/char.hpp>
14 #include <boost/preprocessor/repetition/enum_params.hpp>
15 #include <boost/preprocessor/repetition/repeat.hpp>
25 template <class S, int N>
28 #ifdef BOOST_METAPARSE_STRING_CASE
29 # error BOOST_METAPARSE_STRING_CASE is already defined
31 #define BOOST_METAPARSE_STRING_CASE(z, n, unused) \
33 BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_STRING_SIZE, int C) \
38 BOOST_PP_ENUM_PARAMS(BOOST_METAPARSE_LIMIT_STRING_SIZE, C) \
42 boost::mpl::char_<BOOST_PP_CAT(C, n)> \
46 BOOST_METAPARSE_LIMIT_STRING_SIZE,
47 BOOST_METAPARSE_STRING_CASE,
51 #undef BOOST_METAPARSE_STRING_CASE