patch-freehdl_kernel-db_hh 648 B

1234567891011121314151617181920
  1. $OpenBSD: patch-freehdl_kernel-db_hh,v 1.1 2017/06/03 14:25:16 espie Exp $
  2. ambiguous in C++11
  3. Index: freehdl/kernel-db.hh
  4. --- freehdl/kernel-db.hh.orig
  5. +++ freehdl/kernel-db.hh
  6. @@ -254,10 +254,10 @@ class db_base (public)
  7. // A hash function template used tp generate a hash number from
  8. // d
  9. -class db_basic_key_hash : public hash<unsigned long> {
  10. +class db_basic_key_hash : public __gnu_cxx::hash<unsigned long> {
  11. public:
  12. size_t operator()(const db_basic_key& x) const {
  13. - return (*(hash<unsigned long> *)this)(((unsigned long)x.value)>>2);
  14. + return (*(__gnu_cxx::hash<unsigned long> *)this)(((unsigned long)x.value)>>2);
  15. }
  16. };