mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
19 lines
423 B
C++
19 lines
423 B
C++
#pragma once
|
|
|
|
#include "fs.h"
|
|
|
|
#ifndef USE_GHC_FILESYSTEM
|
|
#include <fmt/std.h>
|
|
#else
|
|
#include <fmt/core.h>
|
|
|
|
namespace fmt {
|
|
template <>
|
|
struct formatter<ghc::filesystem::path> : formatter<std::string> {
|
|
template <typename FormatContext>
|
|
auto format(const ghc::filesystem::path& val, FormatContext& ctx) const {
|
|
return formatter<std::string>::format(val.u8string(), ctx);
|
|
}
|
|
};
|
|
} // namespace fmt
|
|
#endif
|