From: Vsevolod Stakhov Date: Tue, 5 Oct 2021 11:16:09 +0000 (+0100) Subject: [Minor] Fix build where vector size() is not constexpr X-Git-Tag: 3.1~90 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=449aca4df972fcf558ecf6c30e7ac72ce81c60a0;p=rspamd.git [Minor] Fix build where vector size() is not constexpr --- diff --git a/src/libmime/received.hxx b/src/libmime/received.hxx index 7c8d5f397..8320d2c2c 100644 --- a/src/libmime/received.hxx +++ b/src/libmime/received.hxx @@ -166,7 +166,7 @@ public: return std::nullopt; } - constexpr auto size() const -> std::size_t { + auto size() const -> std::size_t { return headers.size(); } constexpr auto as_vector() const -> const std::vector& {