From 9a9e5a55604c0366c63cf0e2b5062b067a2262f6 Mon Sep 17 00:00:00 2001 From: Merry Date: Tue, 12 Sep 2023 21:24:37 +0100 Subject: [PATCH] mcl: avalance_xmrx operator() should be const --- include/mcl/hash/xmrx.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mcl/hash/xmrx.hpp b/include/mcl/hash/xmrx.hpp index 3ba38ca..2f2c976 100644 --- a/include/mcl/hash/xmrx.hpp +++ b/include/mcl/hash/xmrx.hpp @@ -23,7 +23,7 @@ constexpr size_t xmrx(size_t x) template struct avalanche_xmrx { - size_t operator()(const T& value) + size_t operator()(const T& value) const { return xmrx(std::hash{}(value)); }