Add 'this' pointer disambiguation.

I guess this didn't fail on MSVC due to the different name lookup rules
the use.

Fixes issue 56.
This commit is contained in:
Matt Williams
2015-03-08 12:51:00 +00:00
parent c98ad8c948
commit 639eb6620f
2 changed files with 10 additions and 10 deletions

View File

@ -123,7 +123,7 @@ namespace PolyVox
template <typename VoxelType>
uint32_t BaseVolume<VoxelType>::calculateSizeInBytes(void)
{
return getWidth() * getHeight() * getDepth() * sizeof(VoxelType);
return this->getWidth() * this->getHeight() * this->getDepth() * sizeof(VoxelType);
}
}