reject.hpp 713 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef BOOST_METAPARSE_V1_REJECT_HPP
  2. #define BOOST_METAPARSE_V1_REJECT_HPP
  3. // Copyright Abel Sinkovics (abel@sinkovics.hu) 2014.
  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/reject.hpp>
  8. #include <boost/metaparse/v1/fail_tag.hpp>
  9. namespace boost
  10. {
  11. namespace metaparse
  12. {
  13. namespace v1
  14. {
  15. template <class Msg, class Pos>
  16. struct reject
  17. {
  18. typedef fail_tag tag;
  19. typedef reject<Msg, typename Pos::type> type;
  20. typedef Pos source_position;
  21. typedef Msg message;
  22. };
  23. }
  24. }
  25. }
  26. #endif