commit 4acf61f: [Minor] Another try to fix emphasis function
Vsevolod Stakhov
vsevolod at rspamd.com
Sun Jun 19 12:14:03 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-06-19 13:11:00 +0100
URL: https://github.com/rspamd/rspamd/commit/4acf61f0503352b8db7009ba8130288f84f73512 (HEAD -> master)
[Minor] Another try to fix emphasis function
---
src/client/rspamc.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx
index a1028cc51..29ebee043 100644
--- a/src/client/rspamc.cxx
+++ b/src/client/rspamc.cxx
@@ -346,7 +346,7 @@ struct rspamc_callback_data {
};
template<typename T>
-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);
}
More information about the Commits
mailing list