From 70b04a055ecd7f977b28f3450b4ea46730ed6be1 Mon Sep 17 00:00:00 2001 From: David Williams Date: Tue, 3 Jun 2014 21:21:04 +0200 Subject: [PATCH] Compile fioxes for GCC. Turns out the leading underscore was required, as otherwise GCC complains the typedef is hiding the original. --- library/PolyVoxCore/include/PolyVoxCore/Mesh.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/Mesh.h b/library/PolyVoxCore/include/PolyVoxCore/Mesh.h index 34dc50b4..e2329dbf 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/Mesh.h +++ b/library/PolyVoxCore/include/PolyVoxCore/Mesh.h @@ -38,13 +38,13 @@ freely, subject to the following restrictions: namespace PolyVox { - template + template class Mesh { public: - typedef VertexType VertexType; - typedef IndexType IndexType; + typedef _VertexType VertexType; + typedef _IndexType IndexType; Mesh(); ~Mesh(); @@ -76,7 +76,7 @@ namespace PolyVox Mesh< Vertex< typename MeshType::VertexType::DataType >, typename MeshType::IndexType > result; result.m_vecVertices.resize(mesh.m_vecVertices.size()); - for(MeshType::IndexType ct = 0; ct < mesh.m_vecVertices.size(); ct++) + for(typename MeshType::IndexType ct = 0; ct < mesh.m_vecVertices.size(); ct++) { result.m_vecVertices[ct] = decode(mesh.m_vecVertices[ct]); }