From c66a9a58532a5d929144c8fea4a648af5f0e31fe Mon Sep 17 00:00:00 2001 From: Maximilian Reininghaus <maximilian.reininghaus@tu-dortmund.de> Date: Sun, 25 Apr 2021 15:28:32 +0200 Subject: [PATCH] boost ofstream --- corsika/detail/output/OutputManager.inl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/corsika/detail/output/OutputManager.inl b/corsika/detail/output/OutputManager.inl index 3badfd1db..485e3908e 100644 --- a/corsika/detail/output/OutputManager.inl +++ b/corsika/detail/output/OutputManager.inl @@ -15,6 +15,8 @@ #include <ctime> #include <sstream> +#include <boost/filesystem.hpp> + #include <fmt/core.h> #include <fmt/chrono.h> @@ -30,7 +32,7 @@ namespace corsika { out << node; // open the output file - this is <output name>.yaml - std::ofstream file(path.string()); + boost::filesystem::ofstream file(path); // dump the YAML to the file file << out.c_str() << std::endl; -- GitLab