From bc265ea1ef37b68211f87021e8e59e225944451e Mon Sep 17 00:00:00 2001 From: Barry Revzin Date: Fri, 24 Dec 2021 11:08:29 -0600 Subject: [PATCH] I dedicate this commit to Eric Niebler. --- include/fmt/ranges.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index 12296c89..0d6f3d3d 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -601,12 +601,12 @@ struct formatter< template , context>::value)> static auto map(T&& value) -> T&& { - return (T &&) value; + return static_cast(value); } template , context>::value)> - static auto map(T&& value) -> decltype(mapper().map((T &&) value)) { - return mapper().map((T &&) value); + static auto map(T&& value) -> decltype(mapper().map(static_cast(value))) { + return mapper().map(static_cast(value)); } using formatter_type = conditional_t<