Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/extern
diff options
context:
space:
mode:
authorLDA <lda@ldasuku.net>2023-07-12 15:33:25 -0700
committerLDA <lda@ldasuku.net>2023-07-12 15:33:25 -0700
commitdbb998459b8481f474f791423789951f0e217565 (patch)
tree2a5d9eb799b73e961b97901f1751d5f9872f5492 /source/extern
parent2b964a238471a3d7212f85f297b97475babe8f1b (diff)
fmtlib backport to fix warning spam under gcc 13
Diffstat (limited to 'source/extern')
-rw-r--r--source/extern/fmt/core.h5
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>