From 4b8bda25c05d9f959ffed9a0580f0ded623177e5 Mon Sep 17 00:00:00 2001 From: owent Date: Mon, 23 Aug 2021 12:15:05 +0800 Subject: [PATCH] Fix 2462 Signed-off-by: owent --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index dbbf42c8..2f0cfb0b 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2970,7 +2970,7 @@ auto vformat_to_n(OutputIt out, size_t n, string_view fmt, format_args args) template ::value)> FMT_INLINE auto format_to_n(OutputIt out, size_t n, format_string fmt, - const T&... args) -> format_to_n_result { + T&&... args) -> format_to_n_result { return vformat_to_n(out, n, fmt, fmt::make_format_args(args...)); }