From 1929df4bc2f3acbd2ca6c03c29d378113029505c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 19 Apr 2020 09:21:39 -0700 Subject: [PATCH] Simplify format_args --- include/fmt/core.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index bd0d099b..c2e52a6d 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1645,14 +1645,10 @@ template class basic_format_args { /** An alias to ``basic_format_args``. */ // It is a separate type rather than an alias to make symbols readable. struct format_args : basic_format_args { - template - format_args(Args&&... args) - : basic_format_args(static_cast(args)...) {} + using basic_format_args::basic_format_args; }; struct wformat_args : basic_format_args { - template - wformat_args(Args&&... args) - : basic_format_args(static_cast(args)...) {} + using basic_format_args::basic_format_args; }; template struct is_contiguous : std::false_type {};