Closed feverzsj closed 3 years ago
Hi, thanks for the report! I've now implemented hash for smart pointer and string views, and more generic version for strings.
It should work with the latest version: https://github.com/martinus/robin-hood-hashing/blob/master/src/include/robin_hood.h
Fixed in release 3.8.0
since robin_hood::hash is only specialized on raw pointer and leaves unique_ptr cases to general implementation, the result is surprisingly different. This also happens to string/string_view/...
The obvious issue with this is we can't implement heterogeneous hash easily by directly using robin_hood::hash.