diff --git a/common/func.h b/common/func.h index 19d0ceafec1..107efb4a9b3 100644 --- a/common/func.h +++ b/common/func.h @@ -247,7 +247,7 @@ template struct Hash; #define GENERATE_TRIVIAL_HASH_FUNCTOR(T) \ - template <> struct Hash { \ + template <> struct Hash : public UnaryFunction { \ uint operator()(T val) const { return (uint)val; } \ }