Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template write_formatted_expectation_failure_error_message

boost::parser::write_formatted_expectation_failure_error_message

Synopsis

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


template<typename Iter, typename Sentinel> 
  std::ostream & 
  write_formatted_expectation_failure_error_message(std::ostream & os, 
                                                    std::wstring_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. This overload is Windows-only.


PrevUpHomeNext