diff --git a/include/fmt/format.h b/include/fmt/format.h index 9ecda11186e6..4f3d4a7936ab 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3969,9 +3969,8 @@ struct formatter::value>> : formatter, Char> { template auto format(const T& value, FormatContext& ctx) const -> decltype(ctx.out()) { - using base = formatter, Char>; auto&& val = format_as(value); // Make an lvalue reference for format. - return base::format(val, ctx); + return formatter, Char>::format(val, ctx); } }; @@ -3980,8 +3979,7 @@ struct formatter::value>> struct formatter : formatter { \ template \ auto format(Type value, FormatContext& ctx) const -> decltype(ctx.out()) { \ - using base = formatter; \ - return base::format(value, ctx); \ + return formatter::format(value, ctx); \ } \ }