Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template with_error_handler

boost::parser::with_error_handler

Synopsis

// In header: <boost/parser/parser.hpp>


template<typename Parser, typename GlobalState, typename ErrorHandler> 
  auto with_error_handler(parser_interface< Parser, GlobalState, default_error_handler > const & parser, 
                          ErrorHandler & error_handler);

Description

Returns a parser_interface with the same parser and globals, with error_handler added. The resut of passing any non-top-level parser for the parser argument is undefined.


PrevUpHomeNext