next_char.hpp 692 B

123456789101112131415161718192021222324252627282930
  1. #ifndef BOOST_METAPARSE_V1_NEXT_CHAR_HPP
  2. #define BOOST_METAPARSE_V1_NEXT_CHAR_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2011.
  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/fwd/next_char.hpp>
  8. #include <boost/mpl/tag.hpp>
  9. namespace boost
  10. {
  11. namespace metaparse
  12. {
  13. namespace v1
  14. {
  15. template <class P, class Ch>
  16. struct next_char :
  17. next_char_impl<
  18. typename boost::mpl::tag<typename P::type>::type
  19. >::template apply<typename P::type, typename Ch::type>
  20. {};
  21. }
  22. }
  23. }
  24. #endif