Closed xanderdunn closed 3 years ago
Yes, the hash function objects in my utils library handle two cases of input-key-types.
uint64_t
and different variants of std::string
(types with a .data()
and .size()
functions).
If you use any other type of key, you should implement your own hasher. I think the structure of the provided hashers should help you with your own implementations. I might at some point write a different adapter that is a little more general, but at the moment I don't have much time. You could try to use std::hash<...>, but the randomization capabilities might be bad.
Thanks for the information
Ubuntu 18.04. clang++ 12.0.1.
In my project I add
#include "utils/hash/murmur2_hash.hpp"
and I see this error at compile time:The error is similar when I compile with g++ 10.3.0: