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...); } };