patch-freehdl_kernel-util_hh 653 B

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