From 3338ebcdf9c19cfef5d8a8e15aa3b0bb32e9f0cd Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Sat, 10 Mar 2018 17:47:31 +0300 Subject: [PATCH] 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. --- example/x3/rexpr/rexpr_full/test/parse_rexpr_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/x3/rexpr/rexpr_full/test/parse_rexpr_test.cpp b/example/x3/rexpr/rexpr_full/test/parse_rexpr_test.cpp index 430072576..52726f7ac 100644 --- a/example/x3/rexpr/rexpr_full/test/parse_rexpr_test.cpp +++ b/example/x3/rexpr/rexpr_full/test/parse_rexpr_test.cpp @@ -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 =