From 7e9a943905f9cfb95f06a5dc3c95a665a239f814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20GINIER?= Date: Thu, 1 Dec 2022 04:57:06 +0100 Subject: [PATCH] Fix wasm/llvm forward decl bug --- UVAtlas/geodesics/datatypes.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UVAtlas/geodesics/datatypes.h b/UVAtlas/geodesics/datatypes.h index 87cb642c..44e6d9b4 100644 --- a/UVAtlas/geodesics/datatypes.h +++ b/UVAtlas/geodesics/datatypes.h @@ -167,22 +167,22 @@ namespace GeodesicDist #endif // setting an index also assigns appropriate pointer to the corresponding pointer field - void SetEdgeIdx(TypeEdgeList& EdgeList, const uint32_t index) + template void SetEdgeIdx(/*TypeEdgeList*/T& EdgeList, const uint32_t index) { this->dwEdgeIdx = index; this->pEdge = &(EdgeList[index]); } - void SetPseuSrcVertexIdx(TypeVertexList& VertexList, const uint32_t index) + template void SetPseuSrcVertexIdx(/*TypeVertexList*/T& VertexList, const uint32_t index) { this->dwPseuSrcVertexIdx = index; this->pPseuSrcVertex = (index < VertexList.size()) ? &(VertexList[index]) : nullptr; } - void SetMarkFromEdgeVertexIdx(TypeVertexList& VertexList, const uint32_t index) + template void SetMarkFromEdgeVertexIdx(/*TypeVertexList*/T& VertexList, const uint32_t index) { this->dwMarkFromEdgeVertexIdx = index; this->pMarkFromEdgeVertex = &(VertexList[index]); } - void SetFaceIdxPropagatedFrom(TypeFaceList& FaceList, const uint32_t index) + template void SetFaceIdxPropagatedFrom(/*TypeFaceList*/T& FaceList, const uint32_t index) { this->dwFaceIdxPropagatedFrom = index; this->pFacePropagatedFrom = &(FaceList[index]);