File indexing completed on 2025-01-18 09:40:49
0001 #ifndef BOOST_METAPARSE_V1_FAIL_TAG_HPP
0002 #define BOOST_METAPARSE_V1_FAIL_TAG_HPP
0003
0004
0005
0006
0007
0008
0009
0010 #include <boost/metaparse/v1/fwd/get_message.hpp>
0011 #include <boost/metaparse/v1/fwd/get_position.hpp>
0012
0013 #include <iostream>
0014
0015 namespace boost
0016 {
0017 namespace metaparse
0018 {
0019 namespace v1
0020 {
0021 struct fail_tag { typedef fail_tag type; };
0022
0023 template <>
0024 struct get_message_impl<fail_tag>
0025 {
0026 template <class A>
0027 struct apply { typedef typename A::message type; };
0028 };
0029
0030 template <>
0031 struct get_position_impl<fail_tag>
0032 {
0033 template <class A>
0034 struct apply : A::source_position {};
0035 };
0036 }
0037 }
0038 }
0039
0040 #endif
0041
0042