diff --git a/src/util/index_map.hpp b/src/util/index_map.hpp index 3f387657..0eb573a7 100644 --- a/src/util/index_map.hpp +++ b/src/util/index_map.hpp @@ -34,6 +34,8 @@ class IndexMap : private vector { using vector::size; using vector::iterator; using vector::const_iterator; + using vector::reference; + using vector::const_reference; using vector::begin; using vector::end; @@ -60,13 +62,13 @@ class IndexMap : private vector { inline bool contains(const Value& value) const { assert(value); size_t index = get_key(value)->index; - return index < this.size() && (*this)[index] == value + return index < this->size() && (*this)[index] == value; } /// Is a key in the domain of this index map? inline bool containsKey(const Key& key) const { assert(key); - return key->index < this.size() && get_key((*this)[key->index]) == key + return key->index < this.size() && get_key((*this)[key->index]) == key; } /// Find a value given the key name, return an iterator