mirror of https://github.com/CGAL/cgal
BUGFIX: this is safer to compare to the size of indices
This commit is contained in:
parent
acb0950398
commit
b80fd74b73
|
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue