From: Vsevolod Stakhov Date: Sun, 19 Jun 2022 12:11:00 +0000 (+0100) Subject: [Minor] Another try to fix emphasis function X-Git-Tag: 3.3~182 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4acf61f0503352b8db7009ba8130288f84f73512;p=thirdparty%2Frspamd.git [Minor] Another try to fix emphasis function --- diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx index a1028cc51d..29ebee0436 100644 --- a/src/client/rspamc.cxx +++ b/src/client/rspamc.cxx @@ -346,7 +346,7 @@ struct rspamc_callback_data { }; template -static consteval auto emphasis_argument(const T &arg, const char *fmt_string = "{}") -> auto { +static constexpr auto emphasis_argument(const T &arg, const char *fmt_string = "{}") -> auto { if (tty) { return fmt::format(fmt::emphasis::bold, fmt_string, arg); }