Boost C++ 库

...世界上最受推崇和设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ 编码规范

PrevUpHomeNext

函数模板 write_formatted_expectation_failure_error_message

boost::parser::write_formatted_expectation_failure_error_message

概要

// 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);

描述

将格式化的解析预期失败错误(意味着带有文件名、行号和列号前缀)写入到 os。此重载仅适用于 Windows。


PrevUpHomeNext