From 832ec098fcdf4dcbf5476fea7ef7dce6f5c09bbd Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 30 May 2021 06:42:09 -0700 Subject: [PATCH] Fix argument order in locale overload of vformat_to (#2327) --- include/fmt/format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index d2a90b45..88a8a1a6 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2819,7 +2819,7 @@ inline auto format_to(basic_memory_buffer& buf, template ::value&& detail::is_locale::value)> -auto vformat_to(const Locale& loc, OutputIt out, string_view fmt, +auto vformat_to(OutputIt out, const Locale& loc, string_view fmt, format_args args) -> OutputIt { using detail::get_buffer; auto&& buf = get_buffer(out); @@ -2832,7 +2832,7 @@ template ::value)> FMT_INLINE auto format_to(OutputIt out, const Locale& loc, format_string fmt, T&&... args) -> OutputIt { - return vformat_to(loc, out, fmt, fmt::make_format_args(args...)); + return vformat_to(out, loc, fmt, fmt::make_format_args(args...)); } FMT_MODULE_EXPORT_END FMT_END_NAMESPACE