diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-19 12:57:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-19 12:57:48 +0100 |
commit | 2b746e782c48cac5d1d8a54f4c065a4ddeb26cb3 (patch) | |
tree | f427f69940a0bd89dcb1dd9e6d7bad0482c24b4a /src/client | |
parent | a703124937bc4fb28c96adcaec8f950c4f6cec3d (diff) | |
download | rspamd-2b746e782c48cac5d1d8a54f4c065a4ddeb26cb3.tar.gz rspamd-2b746e782c48cac5d1d8a54f4c065a4ddeb26cb3.zip |
[Minor] Add consteval for fmt wrapper
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/rspamc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx index 1f579c922..6060b621f 100644 --- a/src/client/rspamc.cxx +++ b/src/client/rspamc.cxx @@ -346,7 +346,7 @@ struct rspamc_callback_data { }; template<typename T> -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); } |