From 8dbc1d56c8a66b3e55999b0b6709c6066195db27 Mon Sep 17 00:00:00 2001 From: twanvl Date: Fri, 27 Oct 2006 22:08:30 +0000 Subject: [PATCH] fixed some syntax errors git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@52 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/util/index_map.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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