From 6643daaa1c177a4e0635c20eb0b513d077662c81 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 30 Oct 2021 21:11:32 +0100 Subject: [PATCH] [Minor] Use explicit return type Issue: #3893 --- src/libserver/css/css_selector.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libserver/css/css_selector.hxx b/src/libserver/css/css_selector.hxx index 9bab9e61b..02cb783c4 100644 --- a/src/libserver/css/css_selector.hxx +++ b/src/libserver/css/css_selector.hxx @@ -106,9 +106,9 @@ namespace std { template<> class hash { public: - auto operator() (const rspamd::css::css_selector &sel) const -> auto { + auto operator() (const rspamd::css::css_selector &sel) const -> std::size_t { if (sel.type == rspamd::css::css_selector::selector_type::SELECTOR_TAG) { - return static_cast(std::get(sel.value)); + return static_cast(std::get(sel.value)); } else { const auto &sv = std::get(sel.value); -- 2.39.5