Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This version of Boost is under active development. You are currently in the develop branch. The current version is 1.90.0.
boost::parser::rethrow_error_handler
// In header: <boost/parser/error_handling.hpp> struct rethrow_error_handler { // public member functions template<typename Iter, typename Sentinel> error_handler_result operator()(Iter, Sentinel, parse_error< Iter > const &) const; template<typename Context, typename Iter> void diagnose(diagnostic_kind, std::string_view, Context const &, Iter) const; template<typename Context> void diagnose(diagnostic_kind, std::string_view, Context const &) const; };
An error handler that just re-throws any exception generated by the parse.
rethrow_error_handler public member functionstemplate<typename Iter, typename Sentinel> error_handler_result operator()(Iter first, Sentinel last, parse_error< Iter > const & e) const;
template<typename Context, typename Iter> void diagnose(diagnostic_kind kind, std::string_view message, Context const & context, Iter it) const;
template<typename Context> void diagnose(diagnostic_kind kind, std::string_view message, Context const & context) const;