Fix formatting of named arguments with locale

This commit is contained in:
Victor Zverovich committed 2022-12-15 09:59:40 -08:00
1 parent d072f1dc69
commit b90895412f
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -4306,7 +4306,7 @@ template <typename Locale, typename... T,
FMT_ENABLE_IF(detail::is_locale<Locale>::value)>
inline auto format(const Locale& loc, format_string<T...> fmt, T&&... args)
-> std::string {
return vformat(loc, string_view(fmt), fmt::make_format_args(args...));
return fmt::vformat(loc, string_view(fmt), fmt::make_format_args(args...));
}
template <typename OutputIt, typename Locale,