From: Vsevolod Stakhov Date: Sat, 30 Oct 2021 20:11:32 +0000 (+0100) Subject: [Minor] Use explicit return type X-Git-Tag: 3.1~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6643daaa1c177a4e0635c20eb0b513d077662c81;p=rspamd.git [Minor] Use explicit return type Issue: #3893 --- 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);