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);