Compilation works with C++0x features (set -std=c++0x in gcc and def C_PLUS_PLUS_ZERO_X_SUPPORTED)

This commit is contained in:
Matt Williams
2009-05-17 12:22:55 +00:00
parent 46801f1e3d
commit f6e1af1828
2 changed files with 3 additions and 4 deletions

View File

@@ -257,7 +257,7 @@ namespace PolyVox
mVoxelIndexInBlock = mXPosInBlock +
mYPosInBlock * mVolume.m_uBlockSideLength +
mZPosInBlock * mVolume.m_uBlockSideLength * mVolume.m_uBlockSideLength;
boost::shared_ptr< Block<VoxelType> > currentBlock = mVolume.m_pBlocks[mBlockIndexInVolume];
POLYVOX_SHARED_PTR< Block<VoxelType> > currentBlock = mVolume.m_pBlocks[mBlockIndexInVolume];
mCurrentVoxel = currentBlock->m_tData + mVoxelIndexInBlock;
mYPosInBlock++;