]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix build where vector size() is not constexpr
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Oct 2021 11:16:09 +0000 (12:16 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Oct 2021 11:16:09 +0000 (12:16 +0100)
src/libmime/received.hxx

index 7c8d5f39717379660030db3a6bf6a57f031a2269..8320d2c2ca805adf17b92429801c999b8f089d0c 100644 (file)
@@ -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>& {