diff --git a/src/libslic3r/Format/DRC.cpp b/src/libslic3r/Format/DRC.cpp index 3f6305b6bf..d489f04dba 100644 --- a/src/libslic3r/Format/DRC.cpp +++ b/src/libslic3r/Format/DRC.cpp @@ -26,7 +26,7 @@ namespace Slic3r { bool load_drc(const char *path, TriangleMesh *meshptr) { try { - boost::iostreams::mapped_file_source file(path); + boost::iostreams::mapped_file_source file{boost::filesystem::path{path}}; DecoderBuffer buffer; buffer.Init(file.data(), file.size());