Fix build problems when using HashTable.

This commit is contained in:
David Anderson 2013-08-24 01:29:26 -07:00
parent 83dc7f0855
commit e489b4a570

View File

@ -353,7 +353,7 @@ class HashTable : public AllocPolicy
}
public:
HashTable(AllocPolicy ap)
HashTable(AllocPolicy ap = AllocPolicy())
: AllocPolicy(ap),
capacity_(0),
nelements_(0),
@ -420,6 +420,9 @@ class HashTable : public AllocPolicy
bool add(Insert &i, const Payload &payload) {
return internalAdd(i, payload);
}
bool add(Insert &i) {
return internalAdd(i, Payload());
}
bool checkDensity() {
if (underloaded())