[#fail] [section fail] [h1 Synopsis] template struct fail; This is a [link parser parser]. [table Arguments [[Name] [Type]] [[`Msg`] [[link parsing_error_message parsing error message]]] ] [h1 Description] Parser rejecting every input. [h1 Header] #include [h1 Expression semantics] For any `msg` parsing error message, `s` compile-time string and `pos` source position fail::apply::type returns an error with `msg` as the error message. [h1 Example] #include #include #include #include #include #include using namespace boost::metaparse; BOOST_METAPARSE_DEFINE_ERROR(sample_error, "This is an example parsing error"); using fail_p = fail; static_assert( is_error>::type::value, "it should reject every input" ); static_assert( std::is_same< get_message>::type, sample_error >::type::value, "the error message should be the type specified" ); [endsect]