lit_c.hpp 869 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef BOOST_METAPARSE_V1_LIT_C_HPP
  2. #define BOOST_METAPARSE_V1_LIT_C_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/error/literal_expected.hpp>
  8. #include <boost/metaparse/v1/accept_when.hpp>
  9. #include <boost/metaparse/v1/one_char.hpp>
  10. #include <boost/metaparse/v1/change_error_message.hpp>
  11. #include <boost/metaparse/v1/impl/is_char_c.hpp>
  12. namespace boost
  13. {
  14. namespace metaparse
  15. {
  16. namespace v1
  17. {
  18. template <char C>
  19. struct lit_c :
  20. accept_when<
  21. change_error_message<one_char, error::literal_expected<C> >,
  22. impl::is_char_c<C>,
  23. error::literal_expected<C>
  24. >
  25. {};
  26. }
  27. }
  28. }
  29. #endif