freebsd-ports/security/sfs/files/patch-async_ihash.h
Alexey Dokuchaev 62872b88bd Fix code so it is favored by both GCCs (2.x and 3.x), and unbreak the build.
Approved by:	fjoe (mentor, implicit)
		maintainer timeout
2004-10-20 12:33:37 +00:00

11 lines
316 B
C++

--- async/ihash.h.orig Mon Oct 11 16:43:34 2004
+++ async/ihash.h Mon Oct 11 16:39:35 2004
@@ -213,7 +213,7 @@
const H hash;
public:
- ihash () {}
+ ihash () : eq (E ()), hash (H ()) {}
ihash (const E &e, const H &h) : eq (e), hash (h) {}
void insert (V *elm) { insert_val (elm, hash (elm->*key)); }