| Home | Libraries | People | FAQ | More

## Function template write_formatted_expectation_failure_error_message

boost::parser::write_formatted_expectation_failure_error_message

## Synopsis

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

    template<typename Iter, typename Sentinel>
      std::ostream &
      write_formatted_expectation_failure_error_message(std::ostream & os,
                                                        std::string_view filename,
                                                        Iter first,
                                                        Sentinel last,
                                                        parse_error< Iter > const & e,
                                                        int64_t preferred_max_line_length = 80,
                                                        int64_t max_after_caret = 40);

## Description

Writes a formatted parse-expectation failure (meaning prefixed with the file name, line, and column number) to `os`.