digit_to_int.hpp 877 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef BOOST_METAPARSE_V1_UTIL_DIGIT_TO_INT_HPP
  2. #define BOOST_METAPARSE_V1_UTIL_DIGIT_TO_INT_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2009 - 2010.
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #include <boost/metaparse/v1/util/digit_to_int_c.hpp>
  8. #include <boost/mpl/vector.hpp>
  9. namespace boost
  10. {
  11. namespace metaparse
  12. {
  13. namespace v1
  14. {
  15. namespace util
  16. {
  17. template <class D = boost::mpl::na>
  18. struct digit_to_int : digit_to_int_c<D::type::value> {};
  19. template <>
  20. struct digit_to_int<boost::mpl::na>
  21. {
  22. typedef digit_to_int type;
  23. template <class D = boost::mpl::na>
  24. struct apply : digit_to_int<D> {};
  25. };
  26. }
  27. }
  28. }
  29. }
  30. #endif