Compile fixes for GCC.
This commit is contained in:
		| @@ -74,7 +74,13 @@ namespace PolyVox | ||||
| 	} | ||||
|  | ||||
| 	template<typename VolumeType> | ||||
| 	// This is a bit ugly - it seems that the C++03 syntax is different from the C++11 syntax? See this thread: http://stackoverflow.com/questions/6076015/typename-outside-of-template | ||||
| 	// Long term we should probably come back to this and if the #ifdef is still needed then maybe it should check for C++11 mode instead of MSVC?  | ||||
| #if defined(_MSC_VER) | ||||
| 	SurfaceMesh<PositionMaterialNormal> extractCubicSurfaceWithNormals(VolumeType* volData, Region region, WrapMode eWrapMode = WrapModes::Border, typename VolumeType::VoxelType tBorderValue = VolumeType::VoxelType()) | ||||
| #else | ||||
| 	SurfaceMesh<PositionMaterialNormal> extractCubicSurfaceWithNormals(VolumeType* volData, Region region, WrapMode eWrapMode = WrapModes::Border, typename VolumeType::VoxelType tBorderValue = typename VolumeType::VoxelType()) | ||||
| #endif | ||||
| 	{ | ||||
| 		DefaultIsQuadNeeded<typename VolumeType::VoxelType> isQuadNeeded; | ||||
| 		return extractCubicSurfaceWithNormals<VolumeType, DefaultIsQuadNeeded<typename VolumeType::VoxelType> >(volData, region, eWrapMode, tBorderValue, isQuadNeeded); | ||||
|   | ||||
| @@ -221,7 +221,13 @@ namespace PolyVox | ||||
| 	} | ||||
|  | ||||
| 	template< typename VolumeType> | ||||
| 	// This is a bit ugly - it seems that the C++03 syntax is different from the C++11 syntax? See this thread: http://stackoverflow.com/questions/6076015/typename-outside-of-template | ||||
| 	// Long term we should probably come back to this and if the #ifdef is still needed then maybe it should check for C++11 mode instead of MSVC?  | ||||
| #if defined(_MSC_VER) | ||||
| 	SurfaceMesh<PositionMaterialNormal> extractMarchingCubesSurface(VolumeType* volData, Region region, WrapMode eWrapMode = WrapModes::Border, typename VolumeType::VoxelType tBorderValue = VolumeType::VoxelType()) | ||||
| #else | ||||
| 	SurfaceMesh<PositionMaterialNormal> extractMarchingCubesSurface(VolumeType* volData, Region region, WrapMode eWrapMode = WrapModes::Border, typename VolumeType::VoxelType tBorderValue = typename VolumeType::VoxelType()) | ||||
| #endif | ||||
| 	{ | ||||
| 		DefaultMarchingCubesController<typename VolumeType::VoxelType> controller; | ||||
| 		return extractMarchingCubesSurface(volData, region, eWrapMode, tBorderValue, controller); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user