Added Absl hash guards

This commit is contained in:
madisetti
2020-05-19 19:21:16 -04:00
parent 5c908d03bb
commit 80e86220ab
2 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -21,14 +21,14 @@
#include <memory>
#include <utility>
#if defined(PHMAP_USE_ABSL_HASH)
#if defined(PHMAP_USE_ABSL_HASH) && !defined(ABSL_HASH_HASH_H_)
namespace absl { template <class T> struct Hash; };
#endif
namespace phmap {
#if defined(PHMAP_USE_ABSL_HASH)
template <class T> using Hash = absl::Hash<T>;
template <class T> using Hash = ::absl::Hash<T>;
#else
template <class T> struct Hash;
#endif