From bb882c03bc15d893a6059ef52d25d18bc4d3e33e Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 19 Mar 2024 07:47:42 +0900 Subject: [PATCH] Simplify path formatting --- include/fmt/std.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/fmt/std.h b/include/fmt/std.h index b6301805..3e38eef7 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -149,11 +149,9 @@ template struct formatter { template auto format(const std::filesystem::path& p, FormatContext& ctx) const { auto specs = specs_; -# ifdef _WIN32 - auto path_string = !path_type_ ? p.native() : p.generic_wstring(); -# else - auto path_string = !path_type_ ? p.native() : p.generic_string(); -# endif + auto path_string = + !path_type_ ? p.native() + : p.generic_string(); detail::handle_dynamic_spec(specs.width, width_ref_, ctx);