added a const operator to the spatial hashing iterator

This commit is contained in:
Paolo Cignoni 2009-01-19 23:10:43 +00:00
parent d6d380f09b
commit 266ddc1a42
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ namespace vcg{
{
CellIterator(){}
HashIterator t;
ObjPtr &operator *(){return t->second;}
ObjPtr &operator *(){return (t->second); }
ObjPtr operator *() const {return (t->second); }
bool operator != (const CellIterator & p) const {return t!=p.t;}
void operator ++() {t++;}
};