Commit cca81ca9 authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

disambiguate hash<T> for some versions of GCC

parent 5e3968c3
......@@ -343,7 +343,11 @@ public:
// Hasher for pairs
template <class T> struct pairhash {
size_t operator()(pair<T,T> const &A) const {
hash<T> H;
#ifdef NEW_GCC
__gnu_cxx::hash<T> H;
::hash<T> H;
return (H(A.first) | H(A.second));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment