From 080e44d0bf9581b27ac655e5ab747e5bb8ab4ccf Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 5 May 2020 18:28:00 -0700 Subject: [PATCH] Fix inconsistent type detection (#1662) --- include/fmt/core.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 2e5a51fe..a3307489 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1256,13 +1256,16 @@ FMT_CONSTEXPR basic_format_arg make_arg(const T& value) { return arg; } -template inline value make_arg(const T& val) { return arg_mapper().map(val); } -template inline basic_format_arg make_arg(const T& value) { return make_arg(value); @@ -1400,7 +1403,9 @@ class format_arg_store #if FMT_GCC_VERSION && FMT_GCC_VERSION < 409 basic_format_args(*this), #endif - data_{internal::make_arg(args)...} { + data_{internal::make_arg< + is_packed, Context, + internal::mapped_type_constant::value>(args)...} { internal::init_named_args(data_.named_args(), 0, 0, args...); } };