Fix build problems when using HashTable.
authorDavid Anderson <dvander@alliedmods.net>
Sat Aug 24 01:29:26 2013 -0700 (2013-08-24)
changeset 4048ebff56b332b2
parent 4047 c405c08e0f5e
child 4049 b52cc94632fd
Fix build problems when using HashTable.
public/amtl/am-hashtable.h
     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())