diff --git a/include/tscore/IntrusiveHashMap.h b/include/tscore/IntrusiveHashMap.h index f8dd340aff2..83bad931b71 100644 --- a/include/tscore/IntrusiveHashMap.h +++ b/include/tscore/IntrusiveHashMap.h @@ -578,9 +578,9 @@ IntrusiveHashMap::erase(iterator const &loc) -> iterator template bool -IntrusiveHashMap::erase(value_type *value) +IntrusiveHashMap::erase(value_type *v) { - auto loc = this->find(value); + auto loc = this->iterator_for(v); if (loc != this->end()) { this->erase(loc); return true;