From 3d68cc75cfe6044c95199c772d6224e256368088 Mon Sep 17 00:00:00 2001 From: granzuglia Date: Thu, 1 Jul 2010 09:13:08 +0000 Subject: [PATCH] from iterator to const_iterator --- vcg/complex/trimesh/allocate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index 18d75ad1..a9b57772 100644 --- a/vcg/complex/trimesh/allocate.h +++ b/vcg/complex/trimesh/allocate.h @@ -813,7 +813,7 @@ public: template static void GetAllPerVertexAttribute(const MeshType & m, std::vector &all){ - typename std::set :: iterator i; + typename std::set ::const_iterator i; for(i = m.vert_attr.begin(); i != m.vert_attr.end(); ++i ) if((*i)._typename == typeid(ATTR_TYPE).name()) all.push_back((*i)._name); @@ -992,7 +992,7 @@ public: template static void GetAllPerFaceAttribute(const MeshType & m, std::vector &all){ - typename std::set :: iterator i; + typename std::set :: const_iterator i; for(i = m.face_attr.begin(); i != m.face_attr.end(); ++i ) if((*i)._typename == typeid(ATTR_TYPE).name()) all.push_back((*i)._name);