diff --git a/vcg/complex/allocate.h b/vcg/complex/allocate.h index d53b9560..c4b4156a 100644 --- a/vcg/complex/allocate.h +++ b/vcg/complex/allocate.h @@ -51,9 +51,9 @@ namespace vcg { template size_t Index(MeshType &m, const typename MeshType::FaceType * fp) {return fp-&*m.face.begin();} template - size_t Index(MeshType &m, typename MeshType::EdgeType* e) {return e-&*m.edge.begin();} + size_t Index(MeshType &m, const typename MeshType::EdgeType* e) {return e-&*m.edge.begin();} template - size_t Index(MeshType &m, typename MeshType::HEdgeType* h) {return h-&*m.hedge.begin();} + size_t Index(MeshType &m, const typename MeshType::HEdgeType* h) {return h-&*m.hedge.begin();} template void ReorderAttribute(ATTR_CONT &c,std::vector & newVertIndex, MeshType & /* m */){