From aa09722f99d84c15a440d7382c500d1fe942e06f Mon Sep 17 00:00:00 2001 From: Maximilian Reininghaus <maximilian.reininghaus@tu-dortmund.de> Date: Fri, 22 Jan 2021 14:53:29 +0100 Subject: [PATCH] replaced std::filesystem with boost::filesystem because of gcc 7 --- corsika/detail/framework/utility/SaveBoostHistogram.inl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/corsika/detail/framework/utility/SaveBoostHistogram.inl b/corsika/detail/framework/utility/SaveBoostHistogram.inl index bfb2d71fd..817fd6714 100644 --- a/corsika/detail/framework/utility/SaveBoostHistogram.inl +++ b/corsika/detail/framework/utility/SaveBoostHistogram.inl @@ -11,12 +11,12 @@ #include <cnpy.hpp> #include <boost/histogram.hpp> +#include <boost/filesystem.hpp> // can be changed to std::filesystem if compiler supports it #include <functional> #include <memory> #include <numeric> #include <utility> -#include <filesystem> #include <vector> #include <string> @@ -25,10 +25,10 @@ namespace corsika { template <class Axes, class Storage> inline void save_hist(boost::histogram::histogram<Axes, Storage> const& h, std::string const& filename, bool overwrite) { - if (std::filesystem::status(filename).type() != - std::filesystem::file_type::not_found) { + if (boost::filesystem::status(filename).type() != + boost::filesystem::file_type::file_not_found) { if (overwrite) { - std::filesystem::remove(filename); + boost::filesystem::remove(filename); } else { using namespace std::literals; throw std::runtime_error( -- GitLab