From 350d4a6a876fb8ccb76c2e3c4f0d916f98a56410 Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 20 Mar 2011 11:57:05 +0000 Subject: [PATCH] Applying Linux patch. --- library/PolyVoxCore/include/Volume.inl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/library/PolyVoxCore/include/Volume.inl b/library/PolyVoxCore/include/Volume.inl index 9663e8c4..6b269039 100644 --- a/library/PolyVoxCore/include/Volume.inl +++ b/library/PolyVoxCore/include/Volume.inl @@ -129,7 +129,7 @@ namespace PolyVox template Volume::~Volume() { - std::map::iterator i; + typename std::map::iterator i; for(i = m_pBlocks.begin(); i != m_pBlocks.end(); i = m_pBlocks.begin()) { eraseBlock(i); } @@ -290,8 +290,8 @@ namespace PolyVox // we need to unload some blocks for(int j = 0; j < m_pBlocks.size() - uMaxNumberOfBlocksInMemory; j++) { - std::map::iterator i; - std::map::iterator itUnloadBlock = m_pBlocks.begin(); + typename std::map::iterator i; + typename std::map::iterator itUnloadBlock = m_pBlocks.begin(); for(i = m_pBlocks.begin(); i != m_pBlocks.end(); i++) { if(i->second.timestamp < itUnloadBlock->second.timestamp) @@ -484,7 +484,7 @@ namespace PolyVox return m_pLastAccessedBlock; } - std::map::iterator itBlock = m_pBlocks.find(v3dBlockPos); + typename std::map::iterator itBlock = m_pBlocks.find(v3dBlockPos); // check whether the block is already loaded if(itBlock == m_pBlocks.end()) { @@ -497,8 +497,8 @@ namespace PolyVox if(m_pBlocks.size() == m_uMaxNumberOfBlocksInMemory) { // find the least recently used block - std::map::iterator i; - std::map::iterator itUnloadBlock = m_pBlocks.begin(); + typename std::map::iterator i; + typename std::map::iterator itUnloadBlock = m_pBlocks.begin(); for(i = m_pBlocks.begin(); i != m_pBlocks.end(); i++) { if(i->second.timestamp < itUnloadBlock->second.timestamp) @@ -596,7 +596,7 @@ namespace PolyVox uint32_t uSizeInBytes = sizeof(Volume); //Memory used by the blocks - std::map::iterator i; + typename std::map::iterator i; for(i = m_pBlocks.begin(); i != m_pBlocks.end(); i++) { //Inaccurate - account for rest of loaded block.