Skip to content
  • jcfr's avatar
    COMP: Deprecate ITK function ::Zero and ::One to fix clang link error · 0aa1a69c
    jcfr authored
    These were deprecated in 2012; just before the ITK 4.2 release.
    ZeroValue() and OneValue() should be used instead.
    
    -- This coforms to ITKv4 changes made in
        InsightSoftwareConsortium/ITK@6c23e1da
        InsightSoftwareConsortium/ITK@3f712cd0
    
    When building with clang on 10.9 where ITKv4 is a shared library,
    a linking error occured for unfound symbols: NumericTraits<
    OutputPixelType >::Zero but using the
    NumericTraits< OutputPixelType >::ZeroValue() allows linkage to occur properly.
    
    From: Hans Johnson <hans-johnson@uiowa.edu>
    
    git-svn-id: http://svn.slicer.org/Slicer4/trunk@23857 3bd1e089-480b-0410-8dfb-8563597acbee
    0aa1a69c