diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-13 19:21:07 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-13 19:21:07 +1000 |
commit | 212de6b876aaeb916b1e2565740fc65031d906c4 (patch) | |
tree | c29db7db3c0a76cbc9049aad20723bb75bafc053 /source/extern | |
parent | 28f4204b09b04280340ffbbeaccf86b96f377296 (diff) | |
parent | 49afa899a8169bcde3eecffe9944d096ffcd7d2e (diff) |
Merge branch 'main' into voice
Diffstat (limited to 'source/extern')
-rw-r--r-- | source/extern/fmt/core.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/extern/fmt/core.h b/source/extern/fmt/core.h index 46723d5..9062026 100644 --- a/source/extern/fmt/core.h +++ b/source/extern/fmt/core.h @@ -1671,8 +1671,7 @@ constexpr auto encode_types() -> unsigned long long { template <typename Context, typename T> FMT_CONSTEXPR FMT_INLINE auto make_value(T&& val) -> value<Context> { - auto&& arg = arg_mapper<Context>().map(FMT_FORWARD(val)); - using arg_type = remove_cvref_t<decltype(arg)>; + using arg_type = remove_cvref_t<decltype(arg_mapper<Context>().map(val))>; constexpr bool formattable_char = !std::is_same<arg_type, unformattable_char>::value; @@ -1691,7 +1690,7 @@ FMT_CONSTEXPR FMT_INLINE auto make_value(T&& val) -> value<Context> { formattable, "Cannot format an argument. To make type T formattable provide a " "formatter<T> specialization: https://fmt.dev/latest/api.html#udt"); - return {arg}; + return {arg_mapper<Context>().map(val)}; } template <typename Context, typename T> |