commit 449aca4: [Minor] Fix build where vector size() is not constexpr
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Oct 5 11:21:05 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-10-05 12:16:09 +0100
URL: https://github.com/rspamd/rspamd/commit/449aca4df972fcf558ecf6c30e7ac72ce81c60a0 (HEAD -> master)
[Minor] Fix build where vector size() is not constexpr
---
src/libmime/received.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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<received_header>& {
More information about the Commits
mailing list