From 5d591a2899aa9704140086d628720aa5b7adb47d Mon Sep 17 00:00:00 2001 From: "Hans-Martin B. Jensen" Date: Sat, 13 Jan 2024 16:01:03 +0100 Subject: [PATCH] Fix conversion warning in filesystem::path formatter Use template character type to eliminate MSVC conversion warning when formatting a wide chararacter path: fmt\std.h(140,49): warning C4244: '=': conversion from 'const Char' to 'char', possible loss of data --- include/fmt/std.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/std.h b/include/fmt/std.h index 205e6dd1..c3ca0828 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -120,7 +120,7 @@ template struct formatter { format_specs specs_; detail::arg_ref width_ref_; bool debug_ = false; - char path_type_ = 0; + Char path_type_ = 0; public: FMT_CONSTEXPR void set_debug_format(bool set = true) { debug_ = set; }