From: Vsevolod Stakhov Date: Sun, 19 Jun 2022 11:57:48 +0000 (+0100) Subject: [Minor] Add consteval for fmt wrapper X-Git-Tag: 3.3~185 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b746e782c48cac5d1d8a54f4c065a4ddeb26cb3;p=thirdparty%2Frspamd.git [Minor] Add consteval for fmt wrapper --- diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx index 1f579c922a..6060b621f4 100644 --- a/src/client/rspamc.cxx +++ b/src/client/rspamc.cxx @@ -346,7 +346,7 @@ struct rspamc_callback_data { }; template -static auto emphasis_argument(const T &arg, const char *fmt_string = "{}") -> auto { +static consteval auto emphasis_argument(const T &arg, const char *fmt_string = "{}") -> auto { if (tty) { return fmt::format(fmt::emphasis::bold, fmt_string, arg); }