COMP: Use modern macro for name of class
When preparing for the future with ITK by setting ITK_FUTURE_LEGACY_REMOVE:BOOL=ON ITK_LEGACY_REMOVEBOOL=ON
The future preferred macro should be used │ - itkTypeMacro │ + itkOverrideGetNameOfClassMacro
@dzenanz This is part of an effort to create a v5.4.2.1 release that allows Slicer to build with ITK_LEGACY_REMOVE and ITK_FUTURE_LEGACY_REMOVE turned on.
It is an intermediate refactoring that is upstream compatible but allows Slicer to catch up more slowly.
@dzenanz Part of the future updates needed to build Slicer with future code recommendationsl
This sounds like WASM part needs to be updated to use a newer base image:
In file included from /work/wasm/morphological-contour-interpolation.cxx:24:
/work/include/itkMorphologicalContourInterpolator.h:83:3: error: unknown type name 'itkOverrideGetNameOfClassMacro'
83 | itkOverrideGetNameOfClassMacro(MorphologicalContourInterpolator);
| ^
1 error generated.
Is itkOverrideGetNameOfClassMacro in the release-5.4 branch?
Yes, it was added in Dec 2023.
It is there already in v5.4.0: https://github.com/InsightSoftwareConsortium/ITK/blob/v5.4.0/Modules/Core/Common/include/itkMacro.h#L463
I will rebase, follow-up.
Can you rebase this Hans?
@dzenanz Rebased.
Matt, would changes from https://github.com/InsightSoftwareConsortium/ITKMeshToPolyData/pull/77 work here?
Wasm updates for ITK 5.4.2 are here: https://github.com/KitwareMedical/ITKContourInterpolation/pull/130