2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00

X3.Examples: rexpr_full: Fixed compilation on windows

`filesystem::path::c_str()` on windows returns `wchar_t` while error_handler
file parameter is of `std::string` type.
This commit is contained in:
Nikita Kniazev
2018-03-10 17:47:31 +03:00
parent ab280528a3
commit 3338ebcdf9

View File

@@ -35,7 +35,7 @@ auto parse = [](std::string const& source, fs::path input_path)-> std::string
using boost::spirit::x3::with;
using rexpr::parser::error_handler_type;
using rexpr::parser::error_handler_tag;
error_handler_type error_handler(iter, end, out, input_path.c_str()); // Our error handler
error_handler_type error_handler(iter, end, out, input_path.string()); // Our error handler
// Our parser
auto const parser =