diff options
Diffstat (limited to 'boost/metaparse/v1/util/int_to_digit.hpp')
-rw-r--r-- | boost/metaparse/v1/util/int_to_digit.hpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/boost/metaparse/v1/util/int_to_digit.hpp b/boost/metaparse/v1/util/int_to_digit.hpp new file mode 100644 index 0000000000..0e093e9de3 --- /dev/null +++ b/boost/metaparse/v1/util/int_to_digit.hpp @@ -0,0 +1,38 @@ +#ifndef BOOST_METAPARSE_V1_UTIL_INT_TO_DIGIT_HPP +#define BOOST_METAPARSE_V1_UTIL_INT_TO_DIGIT_HPP + +// Copyright Abel Sinkovics (abel@sinkovics.hu) 2012. +// 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) + +#include <boost/metaparse/v1/util/int_to_digit_c.hpp> + +#include <boost/mpl/vector.hpp> + +namespace boost +{ + namespace metaparse + { + namespace v1 + { + namespace util + { + template <class N = boost::mpl::na> + struct int_to_digit : int_to_digit_c<N::type::value> {}; + + template <> + struct int_to_digit<boost::mpl::na> + { + typedef int_to_digit type; + + template <class N = boost::mpl::na> + struct apply : int_to_digit<N> {}; + }; + } + } + } +} + +#endif + |