FIX: Fix missing std::ofstream/std::ifstream declaration

/run/build/BambuStudio/src/libslic3r/SVG.cpp: In function ‘void Slic3r::dumpExPolygonToJson(const ExPolygon&, const std::string&)’:
/run/build/BambuStudio/src/libslic3r/SVG.cpp:620:32: error: variable ‘std::ofstream file’ has initializer but incomplete type
  620 |     std::ofstream file(filePath);
      |                                ^
/run/build/BambuStudio/src/libslic3r/SVG.cpp:6:1: note: ‘std::ofstream’ is defined in header ‘<fstream>’; this is probably fixable by adding ‘#include <fstream>’
    5 | #include "nlohmann/json.hpp"
  +++ |+#include <fstream>
    6 |
This commit is contained in:
Bastien Nocera 2025-03-25 17:31:39 +01:00 committed by Lane.Wei
parent bf32b5a489
commit d51243b089
1 changed files with 1 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#include "SVG.hpp"
#include <fstream>
#include <iostream>
// #include "pugixml/pugixml.hpp"
#include <boost/nowide/cstdio.hpp>