From c8f0fc621055f4ae1df2b88c8f2da15fbb54c504 Mon Sep 17 00:00:00 2001 From: Zhengshou Lai Date: Mon, 12 May 2025 01:46:58 +0800 Subject: [PATCH] fix duplicate operator --- src/mesh/mesh.topoCache.tpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesh/mesh.topoCache.tpp b/src/mesh/mesh.topoCache.tpp index 816048c..921135f 100644 --- a/src/mesh/mesh.topoCache.tpp +++ b/src/mesh/mesh.topoCache.tpp @@ -451,7 +451,7 @@ bool Mesh::TopoCache::isValid() -std::ostream& operator<<(std::ostream &out, const TopoVert& vert) +inline std::ostream& operator<<(std::ostream &out, const TopoVert& vert) { out << "ref(" << vert.ref << ") " << "e(" << vert.edges.size() << "):"; @@ -464,7 +464,7 @@ std::ostream& operator<<(std::ostream &out, const TopoVert& vert) return out; } -std::ostream& operator<<(std::ostream &out, const TopoEdge& edge) +inline std::ostream& operator<<(std::ostream &out, const TopoEdge& edge) { out << "v(2):" << edge.verts[0] << "(" << edge.verts[0]->ref << ");" << edge.verts[1] << "(" << edge.verts[1]->ref << ");"; @@ -475,7 +475,7 @@ std::ostream& operator<<(std::ostream &out, const TopoEdge& edge) return out; } -std::ostream& operator<<(std::ostream &out, const TopoTri& tri) +inline std::ostream& operator<<(std::ostream &out, const TopoTri& tri) { out << "ref(" << tri.ref << ") "; out << "v(3):" << tri.verts[0] << "(" << tri.verts[0]->ref << ");"