From 4762f64312df1a71b00352b6f8bef83e4d7703c1 Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Fri, 25 Dec 2020 03:06:14 +0300 Subject: [PATCH] remove non-const `format` method from `formatter` --- include/fmt/format.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index f5c380ae..4a486112 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3544,19 +3544,6 @@ struct formatter(val)); } - template - FMT_CONSTEXPR auto format(const T& val, FormatContext& ctx) - -> decltype(ctx.out()) { - detail::handle_dynamic_spec(specs_.width, - specs_.width_ref, ctx); - detail::handle_dynamic_spec( - specs_.precision, specs_.precision_ref, ctx); - using af = detail::arg_formatter; - return visit_format_arg(af(ctx, nullptr, &specs_), - detail::make_arg(val)); - } - private: detail::dynamic_format_specs specs_; };