From 266ddc1a42c39af5bdca962c1494e0aa69981f90 Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 19 Jan 2009 23:10:43 +0000 Subject: [PATCH] added a const operator to the spatial hashing iterator --- vcg/space/index/spatial_hashing.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vcg/space/index/spatial_hashing.h b/vcg/space/index/spatial_hashing.h index 773eedea..87d47814 100644 --- a/vcg/space/index/spatial_hashing.h +++ b/vcg/space/index/spatial_hashing.h @@ -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++;} };