Skip to content

Commit

Permalink
Merge pull request #11489 from KratosMultiphysics/core/clean-filesyst…
Browse files Browse the repository at this point in the history
…em-inc

[Core] clean filesystem inlcudes
  • Loading branch information
philbucher authored Sep 22, 2023
2 parents 88e74b0 + 68cb4c1 commit f69333d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions kratos/includes/kratos_filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,9 @@
#pragma once

// System includes
#include <filesystem>
#include <string>
#include <vector>
#if __has_include(<filesystem>) // Check if the header "<filesystem>" exists
#include <filesystem> // We have a decent compiler and can use the normal version
#elif __has_include(<experimental/filesystem>) // Check if the header "<experimental/filesystem>" exists
#include <experimental/filesystem>
// We need the alias from std::experimental::filesystem to std::filesystem
namespace std {
namespace filesystem = experimental::filesystem;
}
#else // Fail if neither header is available with a nice error message
#error Could not find system header "<filesystem>" or "<experimental/filesystem>"
#endif // #if __has_include(<filesystem>)

// External includes

Expand Down
2 changes: 1 addition & 1 deletion kratos/sources/kratos_filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

// System includes
#include <algorithm>
#include <thread>
#include <chrono>
#include <set>
#include <thread>

// External includes

Expand Down

0 comments on commit f69333d

Please sign in to comment.