Follow-up to 408e56f039
Fixing compilation of tests on latest GCC/boost
This commit is contained in:
parent
142b924366
commit
926ae04718
@ -11,6 +11,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <boost/nowide/cstdio.hpp>
|
#include <boost/nowide/cstdio.hpp>
|
||||||
|
#include <boost/nowide/fstream.hpp>
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
#include <libslic3r/ModelArrange.hpp>
|
#include <libslic3r/ModelArrange.hpp>
|
||||||
|
|
||||||
@ -286,7 +287,7 @@ std::string gcode(Print & print)
|
|||||||
print.set_status_silent();
|
print.set_status_silent();
|
||||||
print.process();
|
print.process();
|
||||||
print.export_gcode(temp.string(), nullptr, nullptr);
|
print.export_gcode(temp.string(), nullptr, nullptr);
|
||||||
std::ifstream t(temp.string());
|
boost::nowide::ifstream t(temp.string());
|
||||||
std::string str((std::istreambuf_iterator<char>(t)), std::istreambuf_iterator<char>());
|
std::string str((std::istreambuf_iterator<char>(t)), std::istreambuf_iterator<char>());
|
||||||
boost::nowide::remove(temp.string().c_str());
|
boost::nowide::remove(temp.string().c_str());
|
||||||
return str;
|
return str;
|
||||||
|
Loading…
Reference in New Issue
Block a user