From cfcafcc23c7449e57ad386ddb1f45f9c8da0cbc8 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 5700c152b3c6..da59a30e5980 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1208,13 +1208,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); @@ -1348,7 +1351,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)...} { } };