$OpenBSD: patch-freehdl_kernel-util_hh,v 1.1 2017/06/03 14:25:16 espie Exp $ C++11 ambiguity Index: freehdl/kernel-util.hh --- freehdl/kernel-util.hh.orig +++ freehdl/kernel-util.hh @@ -24,10 +24,10 @@ using namespace __gnu_cxx; // A hash function template used tp generate a hash number from // pointer values. template -class pointer_hash : public hash { +class pointer_hash : public __gnu_cxx::hash { public: size_t operator()(const T& x) const { - return (*(hash *)this)(((unsigned long)x)>>2); + return (*(__gnu_cxx::hash *)this)(((unsigned long)x)>>2); } };