fail.hpp 614 B

123456789101112131415161718192021222324252627282930
  1. #ifndef BOOST_METAPARSE_V1_FAIL_HPP
  2. #define BOOST_METAPARSE_V1_FAIL_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/reject.hpp>
  8. namespace boost
  9. {
  10. namespace metaparse
  11. {
  12. namespace v1
  13. {
  14. template <class Msg>
  15. struct fail
  16. {
  17. typedef fail type;
  18. template <class S, class Pos>
  19. struct apply : reject<Msg, Pos> {};
  20. };
  21. }
  22. }
  23. }
  24. #endif