COMP: Fix vtkITK windows build error when ITK_USE_64BITS_IDS is ON. See 0003825
Thanks to "Gib Bogle <g.bogle@auckland.ac.nz>" for reporting the issue and
testing the patch.
The build error fixed by this commit was:
32> vtkITKTimeSeriesDatabase.cxx
32>c:\slicer\libs\vtkitk\itkTimeSeriesDatabase.txx(34): error C2782: 'T itk::TSD_MAX(T,T)' : template parameter 'T' is ambiguous [C:\s\b\Slicer-build\Libs\vtkITK\vtkITK.vcxproj]
32> c:\slicer\libs\vtkitk\itkTimeSeriesDatabase.txx(19) : see declaration of 'itk::TSD_MAX'
32> could be 'itk::Size<VDimension>::SizeValueType'
32> with
32> [
32> VDimension=3
32> ]
32> or 'itk::IndexValueType'
32> c:\slicer\libs\vtkitk\itkTimeSeriesDatabase.txx(27) : while compiling class template member function 'bool itk::TimeSeriesDatabase<TPixel>::CalculateIntersection(itk::Size<VDimension>,itk::ImageRegion<VImageDimension>,itk::ImageRegion<VImageDimension> &,itk::ImageRegion<VImageDimension> &)'
32> with
32> [
32> TPixel=vtkITKTimeSeriesDatabase::OutputImagePixelType,
32> VDimension=3,
32> VImageDimension=3
32> ]
32> c:\slicer\libs\vtkitk\itkTimeSeriesDatabase.txx(344) : while compiling class template member function 'void itk::TimeSeriesDatabase<TPixel>::CreateFromFileArchetype(const char ,const char )'
32> with
32> [
32> TPixel=vtkITKTimeSeriesDatabase::OutputImagePixelType
32> ]
32> c:\slicer\libs\vtkitk\vtkITKTimeSeriesDatabase.h(89) : see reference to class template instantiation 'itk::TimeSeriesDatabase<TPixel>' being compiled
32> with
32> [
32> TPixel=vtkITKTimeSeriesDatabase::OutputImagePixelType
32> ]
32>c:\slicer\libs\vtkitk\itkTimeSeriesDatabase.txx(41): error C2782: 'T itk::TSD_MIN(T,T)' : template parameter 'T' is ambiguous [C:\s\b\Slicer-build\Libs\vtkITK\vtkITK.vcxproj]
32> c:\slicer\libs\vtkitk\itkTimeSeriesDatabase.txx(18) : see declaration of 'itk::TSD_MIN'
32> could be 'itk::Size<VDimension>::SizeValueType'
32> with
32> [
32> VDimension=3
32> ]
32> or 'itk::IndexValueType'
32> Done Building Project "C:\s\b\Slicer-build\Libs\vtkITK\vtkITK.vcxproj" (default targets) -- FAILED.
git-svn-id: http://svn.slicer.org/Slicer4/trunk@23717 3bd1e089-480b-0410-8dfb-8563597acbee |