DPsim
Loading...
Searching...
No Matches
Filesystem.h
1/* Copyright 2017-2023 Institute for Automation of Complex Power Systems,
2 * EONERC, RWTH Aachen University
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
7 *********************************************************************************/
8
9#pragma once
10
11#ifndef USE_GHC_FS
12#include <experimental/filesystem>
13namespace fs = std::experimental::filesystem;
14#else
15#include <ghc/filesystem.hpp>
16namespace fs = ghc::filesystem;
17#endif
18
19#include <spdlog/fmt/ostr.h>
20
21#if FMT_VERSION >= 90000
22template <> class fmt::formatter<fs::path> : public fmt::ostream_formatter {};
23#endif