Closed thewtex closed 6 months ago
Thanks Matt, do I understand that this is just a quick-fix, to work around a compiler bug?
I still wonder:
work around a compiler bug? possibly fixed in a newer clang version?
Well, this is for the compiler that comes with current XCode Clang (the default compiler on macOS), and we need to support it.
add "deduction guides" to the RLEImage specializations
Cool idea! Yes with a variation. Added here: https://github.com/KitwareMedical/ITKRLEImage/pull/63
Explicit template argument does not hurt, and it will allow compiling with older versions of RLEImage remote module. I vote to merge.
Explicit template argument does not hurt, and it will allow compiling with older versions of RLEImage remote module.
It would hurt me! We put a lot of effort into using CTAD in ITK. And it was a pain already to work around those warnings (-wctad-maybe-unsupported
). Is UnaryFunctorImageFilter
then expected to be the only case where CTAD (temporarily?) may not be used?
@thewtex If it is still found necessary to merge this PR, could you please add that four-letter-word (no pun intended 😸) "CTAD" somewhere in the subject of the commit? For example:
COMP: Revert CTAD in UnaryFunctorImageFilter to work around clang errors
It might help us in the future, when trying to find back this CTAD problem.
Let's close in favor of https://github.com/KitwareMedical/ITKRLEImage/pull/63 to avoid additional warnings and bump the ITKRLEImage as @dzenanz suggested to improved compatibility #4555.
With:
❯ c++ --version Apple clang version 15.0.0 (clang-1500.3.9.4) Target: arm64-apple-darwin23.3.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Addresses:
Closes #4537.