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