mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
fix compilation issue on msvc when xhash is included.
This commit is contained in:
Vendored
+1
-1
@@ -4004,7 +4004,7 @@ struct StringHashT
|
|||||||
|
|
||||||
size_t operator()(std::basic_string_view<CharT> v) const {
|
size_t operator()(std::basic_string_view<CharT> v) const {
|
||||||
std::string_view bv{reinterpret_cast<const char*>(v.data()), v.size() * sizeof(CharT)};
|
std::string_view bv{reinterpret_cast<const char*>(v.data()), v.size() * sizeof(CharT)};
|
||||||
return phmap::Hash<std::string_view>{}(bv);
|
return std::hash<std::string_view>()(bv);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user