From a829b0f98ac05b76359e1cc1a20bac39b4677f6c Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Wed, 4 Dec 2019 18:57:11 -0600 Subject: [PATCH] Fix usage of quoted string io --- xs/src/libslic3r/Print.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xs/src/libslic3r/Print.cpp b/xs/src/libslic3r/Print.cpp index ae80248cc..72413ebb8 100644 --- a/xs/src/libslic3r/Print.cpp +++ b/xs/src/libslic3r/Print.cpp @@ -726,7 +726,9 @@ Print::export_gcode(std::string outfile, bool quiet) this->config.setenv_(); for (std::string ppscript : this->config.post_process.values) { #ifdef __cpp_lib_quoted_string_io - ppscript += " " + std::quoted(outfile); + std::stringstream _tmp_string(ppscript); + _tmp_string << " " << std::quoted(outfile); + ppscript = _tmp_string.str(); #else boost::replace_all(ppscript, "\"", "\\\""); ppscript += " \"" + outfile + "\"";