BUGFIX: this is safer to compare to the size of indices

This commit is contained in:
Sébastien Loriot 2011-06-17 13:07:06 +00:00
parent acb0950398
commit b80fd74b73
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public:
} }
bool contains(const IndexedType& x) const { bool contains(const IndexedType& x) const {
return this->index_array[ get(this->id, x) ] < this->c.size(); return this->index_array[ get(this->id, x) ] !=this->index_array.size();
} }
}; };