Fix build problems when using HashTable.
Fix build problems when using HashTable.
1.1 --- a/public/amtl/am-hashtable.h Sat Aug 24 01:29:03 2013 -0700
1.2 +++ b/public/amtl/am-hashtable.h Sat Aug 24 01:29:26 2013 -0700
1.3 @@ -353,7 +353,7 @@
1.4 }
1.5
1.6 public:
1.7 - HashTable(AllocPolicy ap)
1.8 + HashTable(AllocPolicy ap = AllocPolicy())
1.9 : AllocPolicy(ap),
1.10 capacity_(0),
1.11 nelements_(0),
1.12 @@ -420,6 +420,9 @@
1.13 bool add(Insert &i, const Payload &payload) {
1.14 return internalAdd(i, payload);
1.15 }
1.16 + bool add(Insert &i) {
1.17 + return internalAdd(i, Payload());
1.18 + }
1.19
1.20 bool checkDensity() {
1.21 if (underloaded())