Compile fioxes for GCC.

Turns out the leading underscore was required, as otherwise GCC complains the typedef is hiding the original.
This commit is contained in:
David Williams 2014-06-03 21:21:04 +02:00
parent b7be2ff7ab
commit 70b04a055e

View File

@ -38,13 +38,13 @@ freely, subject to the following restrictions:
namespace PolyVox
{
template <typename VertexType, typename IndexType = uint32_t>
template <typename _VertexType, typename _IndexType = uint32_t>
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]);
}