Added 'typename'.

This commit is contained in:
David Williams 2015-02-10 21:49:28 +01:00
parent feb9b6bdc6
commit 1cbc0605fd

View File

@ -84,7 +84,7 @@ VolumeType* createAndFillVolumeWithNoise(int32_t iVolumeSideLength, typename Vol
else
{
// Otherwise we write random voxel values between zero and the requested maximum
VolumeType::VoxelType voxelValue = static_cast<VolumeType::VoxelType>(dist(rng));
VolumeType::VoxelType voxelValue = static_cast<typename VolumeType::VoxelType>(dist(rng));
volData->setVoxelAt(x, y, z, static_cast<typename VolumeType::VoxelType>(voxelValue));
}
}