diff --git a/vcg/complex/trimesh/allocate.h b/vcg/complex/trimesh/allocate.h index 6f548897..b28bb6fc 100644 --- a/vcg/complex/trimesh/allocate.h +++ b/vcg/complex/trimesh/allocate.h @@ -1041,10 +1041,10 @@ public: std::string TypeID(){ return typeid(TYPE).name();} - void AddPerVertexAttribute(MeshType & m){Allocator::AddPerVertexAttribute (m,_name);} - void AddPerFaceAttribute(MeshType & m) {Allocator::AddPerFaceAttribute (m,_name);} - void AddPerEdgeAttribute(MeshType & m) {Allocator::AddPerEdgeAttribute (m,_name);} - void AddPerMeshAttribute(MeshType & m) {Allocator::AddPerMeshAttribute (m,_name);} + void AddPerVertexAttribute(MeshType & m){Allocator::template AddPerVertexAttribute (m,_name);} + void AddPerFaceAttribute(MeshType & m) {Allocator::template AddPerFaceAttribute (m,_name);} + void AddPerEdgeAttribute(MeshType & m) {Allocator::template AddPerEdgeAttribute (m,_name);} + void AddPerMeshAttribute(MeshType & m) {Allocator::template AddPerMeshAttribute (m,_name);} private: std::string _name; };