diff --git a/public/amtl/am-hashset.h b/public/amtl/am-hashset.h index 6edbdea1..13f8eb8f 100644 --- a/public/amtl/am-hashset.h +++ b/public/amtl/am-hashset.h @@ -101,6 +101,9 @@ class HashSet : public AllocPolicy bool add(Insert &i, const K &key) { return table_.add(i, key); } + bool add(Insert &i, Moveable key) { + return table_.add(i, key); + } // This can be used to avoid compiler constructed temporaries, since AMTL // does not yet support move semantics. If you use this, the key and value diff --git a/public/amtl/am-inlinelist.h b/public/amtl/am-inlinelist.h index 56aa4204..4e9e1ee7 100644 --- a/public/amtl/am-inlinelist.h +++ b/public/amtl/am-inlinelist.h @@ -123,7 +123,7 @@ class InlineList return iterator(&head_); } - void erase(Node *t) { + void remove(Node *t) { t->prev_->next_ = t->next_; t->next_->prev_ = t->prev_; }