From dc9950d1c8edfe32b06080f7d04cce38590b309e Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Sat, 24 May 2008 14:29:56 +0000 Subject: [PATCH] - PolyVox now completely builds on Linux. - - Fix the template trickery with this one word fix to Volume.inl. For the reason, see http://www.parashift.com/c++-faq-lite/templates.html#faq-35.18 - Add newlines to two more files so that PolyVox build with no warnings at all. --- include/Volume.inl | 2 +- source/RegionGeometry.cpp | 2 +- source/Utility.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Volume.inl b/include/Volume.inl index df1e9f60..5bb1bc40 100644 --- a/include/Volume.inl +++ b/include/Volume.inl @@ -209,7 +209,7 @@ namespace PolyVox template Block* Volume::getHomogenousBlock(VoxelType tHomogenousValue) const { - std::map*>::iterator iterResult = m_pHomogenousBlocks.find(tHomogenousValue); + typename std::map*>::iterator iterResult = m_pHomogenousBlocks.find(tHomogenousValue); if(iterResult == m_pHomogenousBlocks.end()) { Block* pBlock = new Block(m_uBlockSideLengthPower); diff --git a/source/RegionGeometry.cpp b/source/RegionGeometry.cpp index 1c486372..63f48480 100644 --- a/source/RegionGeometry.cpp +++ b/source/RegionGeometry.cpp @@ -27,4 +27,4 @@ namespace PolyVox RegionGeometry::RegionGeometry() { } -} \ No newline at end of file +} diff --git a/source/Utility.cpp b/source/Utility.cpp index ab53bd71..db06bf30 100644 --- a/source/Utility.cpp +++ b/source/Utility.cpp @@ -56,4 +56,4 @@ namespace PolyVox } return uNonZeroBits == 1 ? true : false; } -} \ No newline at end of file +}