diff --git a/Modules/Filtering/FFT/include/itkFFTImageFilterFactory.h b/Modules/Filtering/FFT/include/itkFFTImageFilterFactory.h index 5ab1da003db..6c4b85d2c7b 100644 --- a/Modules/Filtering/FFT/include/itkFFTImageFilterFactory.h +++ b/Modules/Filtering/FFT/include/itkFFTImageFilterFactory.h @@ -93,46 +93,34 @@ class FFTImageFilterFactory : public itk::ObjectFactoryBase * with distinct specialization. * Requires TFFTImageFilter to have the template signature . */ - template + template void - OverrideFFTImageFilterType() + OverrideFFTImageFilterType(const std::integer_sequence &) { - using InputImageType = Image; - using OutputImageType = Image; + using InputImageType = Image; + using OutputImageType = Image; this->RegisterOverride(typeid(typename TFFTImageFilter::Superclass).name(), typeid(TFFTImageFilter).name(), "FFT Image Filter Override", true, CreateObjectFunction>::New()); + OverrideFFTImageFilterType( + std::integer_sequence{}); } + template + void + OverrideFFTImageFilterType(const std::integer_sequence &) + {} FFTImageFilterFactory() { OverrideFFTImageFilterType::template InputPixelType, - typename FFTImageFilterTraits::template OutputPixelType, - 1>(); - OverrideFFTImageFilterType::template InputPixelType, - typename FFTImageFilterTraits::template OutputPixelType, - 2>(); - OverrideFFTImageFilterType::template InputPixelType, - typename FFTImageFilterTraits::template OutputPixelType, - 3>(); - OverrideFFTImageFilterType::template InputPixelType, - typename FFTImageFilterTraits::template OutputPixelType, - 4>(); + typename FFTImageFilterTraits::template OutputPixelType>( + std::integer_sequence{}); OverrideFFTImageFilterType::template InputPixelType, - typename FFTImageFilterTraits::template OutputPixelType, - 1>(); - OverrideFFTImageFilterType::template InputPixelType, - typename FFTImageFilterTraits::template OutputPixelType, - 2>(); - OverrideFFTImageFilterType::template InputPixelType, - typename FFTImageFilterTraits::template OutputPixelType, - 3>(); - OverrideFFTImageFilterType::template InputPixelType, - typename FFTImageFilterTraits::template OutputPixelType, - 4>(); + typename FFTImageFilterTraits::template OutputPixelType>( + std::integer_sequence{}); } };