From 5644e7507ca486fbbe1946ffebeb71685d3e8ac9 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 10 Sep 2024 18:35:32 -0700 Subject: [PATCH] Remove unnecessary forwarding --- include/fmt/base.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 0c9e562a..505940f8 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -286,8 +286,6 @@ # error FMT_BUILTIN_TYPES=0 requires constexpr if support #endif -#define FMT_FWD(...) static_cast(__VA_ARGS__) - #define FMT_APPLY_VARIADIC(expr) \ using ignore = int[]; \ (void)ignore { 0, (expr, 0)... } @@ -2868,7 +2866,7 @@ template ::value)> FMT_INLINE auto format_to(OutputIt&& out, format_string fmt, T&&... args) -> remove_cvref_t { - return vformat_to(FMT_FWD(out), fmt.str, vargs{{args...}}); + return vformat_to(out, fmt.str, vargs{{args...}}); } template struct format_to_n_result {