IAP GITLAB

Skip to content
Snippets Groups Projects
Commit aa09722f authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by Maximilian Reininghaus
Browse files

replaced std::filesystem with boost::filesystem because of gcc 7

parent 64d357e2
No related branches found
No related tags found
No related merge requests found
...@@ -11,12 +11,12 @@ ...@@ -11,12 +11,12 @@
#include <cnpy.hpp> #include <cnpy.hpp>
#include <boost/histogram.hpp> #include <boost/histogram.hpp>
#include <boost/filesystem.hpp> // can be changed to std::filesystem if compiler supports it
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <numeric> #include <numeric>
#include <utility> #include <utility>
#include <filesystem>
#include <vector> #include <vector>
#include <string> #include <string>
...@@ -25,10 +25,10 @@ namespace corsika { ...@@ -25,10 +25,10 @@ namespace corsika {
template <class Axes, class Storage> template <class Axes, class Storage>
inline void save_hist(boost::histogram::histogram<Axes, Storage> const& h, inline void save_hist(boost::histogram::histogram<Axes, Storage> const& h,
std::string const& filename, bool overwrite) { std::string const& filename, bool overwrite) {
if (std::filesystem::status(filename).type() != if (boost::filesystem::status(filename).type() !=
std::filesystem::file_type::not_found) { boost::filesystem::file_type::file_not_found) {
if (overwrite) { if (overwrite) {
std::filesystem::remove(filename); boost::filesystem::remove(filename);
} else { } else {
using namespace std::literals; using namespace std::literals;
throw std::runtime_error( throw std::runtime_error(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment