X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fvendor%2Ffmt%2Fcore.h;fp=src%2Fvendor%2Ffmt%2Fcore.h;h=2eff064cd363756bc63e5018fdc73f75da04f0a4;hb=ca496d870cc9a991c1c79c7db9d213845b181420;hp=bed8b40d3ee5513529d22c887c5bdf35121c3e97;hpb=dd7ef1243236f524e57b25baa038973e793d5d72;p=lttng-tools.git diff --git a/src/vendor/fmt/core.h b/src/vendor/fmt/core.h index bed8b40d3..2eff064cd 100644 --- a/src/vendor/fmt/core.h +++ b/src/vendor/fmt/core.h @@ -1732,32 +1732,27 @@ constexpr auto encode_types() -> unsigned long long { template FMT_CONSTEXPR FMT_INLINE auto make_value(T&& val) -> value { - const auto& arg = arg_mapper().map(FMT_FORWARD(val)); + using arg_type = remove_cvref_t().map(val))>; constexpr bool formattable_char = - !std::is_same::value; + !std::is_same::value; static_assert(formattable_char, "Mixing character types is disallowed."); - constexpr bool formattable_const = - !std::is_same::value; - static_assert(formattable_const, "Cannot format a const argument."); - // Formatting of arbitrary pointers is disallowed. If you want to output // a pointer cast it to "void *" or "const void *". In particular, this // forbids formatting of "[const] volatile char *" which is printed as bool // by iostreams. constexpr bool formattable_pointer = - !std::is_same::value; + !std::is_same::value; static_assert(formattable_pointer, "Formatting of non-void pointers is disallowed."); - constexpr bool formattable = - !std::is_same::value; + constexpr bool formattable = !std::is_same::value; static_assert( formattable, "Cannot format an argument. To make type T formattable provide a " "formatter specialization: https://fmt.dev/latest/api.html#udt"); - return {arg}; + return {arg_mapper().map(val)}; } template