mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
fix last ubuntu xenial build issue
This commit is contained in:
Vendored
+19
@@ -26,6 +26,7 @@
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
#include <string>
|
||||
#include <functional>
|
||||
|
||||
#if PHMAP_HAVE_STD_STRING_VIEW
|
||||
#include <string_view>
|
||||
@@ -193,4 +194,22 @@ using GeneratedType = decltype(
|
||||
} // namespace container_internal
|
||||
} // namespace phmap
|
||||
|
||||
namespace std
|
||||
{
|
||||
using phmap::container_internal::hash_internal::EnumClass;
|
||||
using phmap::container_internal::hash_internal::Enum;
|
||||
|
||||
template<>
|
||||
struct hash<EnumClass>
|
||||
{
|
||||
std::size_t operator()(EnumClass const &p) const { return (std::size_t)p; }
|
||||
};
|
||||
template<>
|
||||
struct hash<Enum>
|
||||
{
|
||||
std::size_t operator()(Enum const &p) const { return (std::size_t)p; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif // PHMAP_CONTAINER_INTERNAL_HASH_GENERATOR_TESTING_H_
|
||||
|
||||
Reference in New Issue
Block a user