This commit is contained in:
Jin S 2023-11-28 22:06:37 -05:00
parent e5dd88b0e9
commit 6a1c643adb

View File

@ -78,7 +78,7 @@
#if FMT_CPP_LIB_FILESYSTEM #if FMT_CPP_LIB_FILESYSTEM
FMT_BEGIN_NAMESPACE FMT_BEGIN_NAMESPACE
namespace detail { namespace detail {
template <typename Char, typename PathChar> auto get_path_string( template <typename Char, typename PathChar> auto get_path_string(
@ -142,9 +142,9 @@ template <typename Char> struct formatter<std::filesystem::path, Char> {
auto specs = specs_; auto specs = specs_;
auto path_type = path_type_; auto path_type = path_type_;
# ifdef _WIN32 # ifdef _WIN32
auto path_string = (path_type == 'n') ? p.native() : p.generic_wstring(); auto path_string = path_type == 'n' ? p.native() : p.generic_wstring();
# else # else
auto path_string = (path_type == 'n') ? p.native() : p.generic_string(); auto path_string = path_type == 'n' ? p.native() : p.generic_string();
# endif # endif
detail::handle_dynamic_spec<detail::width_checker>(specs.width, width_ref_, detail::handle_dynamic_spec<detail::width_checker>(specs.width, width_ref_,