diff --git a/src/libs/antares/study/parts/common/cluster_list.cpp b/src/libs/antares/study/parts/common/cluster_list.cpp index 2551c507cf..0feee3a77f 100644 --- a/src/libs/antares/study/parts/common/cluster_list.cpp +++ b/src/libs/antares/study/parts/common/cluster_list.cpp @@ -96,7 +96,8 @@ void ClusterList::storeTimeseriesNumbers(Solver::IResultWriter& writer for (auto& cluster: each_enabled()) { - fs::path path = fs::path(cluster->parentArea->id) / std::string(cluster->id() + ".txt"); + fs::path path = fs::path(cluster->parentArea->id.c_str()) + / std::string(cluster->id() + ".txt"); ts_content.clear(); // We must clear ts_content here, since saveToBuffer does not do it. cluster->series.timeseriesNumbers.saveToBuffer(ts_content); diff --git a/src/solver/simulation/opt_time_writer.cpp b/src/solver/simulation/opt_time_writer.cpp index a09f3feaa8..8ea4091a26 100644 --- a/src/solver/simulation/opt_time_writer.cpp +++ b/src/solver/simulation/opt_time_writer.cpp @@ -47,5 +47,5 @@ void OptimizationStatisticsWriter::finalize() const path filename = path("optimization") / "week-by-week" / ("year_" + std::to_string(pYear) + ".txt"); std::string s = pBuffer.str(); - pWriter.addEntryFromBuffer(filename.string(), s); + pWriter.addEntryFromBuffer(filename, s); }