fix last ubuntu xenial build issue

This commit is contained in:
greg
2019-03-26 08:47:36 -04:00
parent 6c6383b5b7
commit ff075f38f0
+19
View File
@@ -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_