#pragma once // Provides formatters for standard library types to be used with fmtlib. // TODO: Patch fmtlib to support using `fmt/std.h` without RTTI // (https://github.com/fmtlib/fmt/issues/3170). #include #include #include namespace fmt { FMT_FORMAT_AS(std::filesystem::path, std::string); } template <> struct fmt::formatter : fmt::formatter { auto format(const std::error_code& e, format_context& ctx) const { return fmt::formatter::format(e.message(), ctx); } };