]>
Commit | Line | Data |
---|---|---|
1 | #ifndef BOOST_METAPARSE_V1_UTIL_INT_TO_DIGIT_C_HPP | |
2 | #define BOOST_METAPARSE_V1_UTIL_INT_TO_DIGIT_C_HPP | |
3 | ||
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) | |
8 | ||
9 | #include <boost/mpl/char.hpp> | |
10 | ||
11 | namespace boost | |
12 | { | |
13 | namespace metaparse | |
14 | { | |
15 | namespace v1 | |
16 | { | |
17 | namespace util | |
18 | { | |
19 | template <int N> | |
20 | struct int_to_digit_c; | |
21 | ||
22 | template <> struct int_to_digit_c<0> : boost::mpl::char_<'0'> {}; | |
23 | template <> struct int_to_digit_c<1> : boost::mpl::char_<'1'> {}; | |
24 | template <> struct int_to_digit_c<2> : boost::mpl::char_<'2'> {}; | |
25 | template <> struct int_to_digit_c<3> : boost::mpl::char_<'3'> {}; | |
26 | template <> struct int_to_digit_c<4> : boost::mpl::char_<'4'> {}; | |
27 | template <> struct int_to_digit_c<5> : boost::mpl::char_<'5'> {}; | |
28 | template <> struct int_to_digit_c<6> : boost::mpl::char_<'6'> {}; | |
29 | template <> struct int_to_digit_c<7> : boost::mpl::char_<'7'> {}; | |
30 | template <> struct int_to_digit_c<8> : boost::mpl::char_<'8'> {}; | |
31 | template <> struct int_to_digit_c<9> : boost::mpl::char_<'9'> {}; | |
32 | } | |
33 | } | |
34 | } | |
35 | } | |
36 | ||
37 | #endif | |
38 |