diff --git a/include/fmt/std.h b/include/fmt/std.h index 4d7b9da4b66c8..2eb7f64feb19c 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -417,7 +417,7 @@ struct formatter FMT_CONSTEXPR auto format(const BitRef& v, FormatContext& ctx) const -> decltype(ctx.out()) { - return formatter::format(static_cast(v), ctx); + return formatter::format(v, ctx); } }; @@ -431,7 +431,7 @@ struct formatter, Char> : formatter { template FMT_CONSTEXPR20 auto format(const std::__bit_const_reference& v, FormatContext& ctx) const -> decltype(ctx.out()) { - return formatter::format(static_cast(v), ctx); + return formatter::format(v, ctx); } };