[Insight-developers] TernaryFunctorImageFilter::SetFunctor() broken (at least with gcc)

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Aug 9 07:31:25 EDT 2005


Hi,

TernaryFunctorImageFilter::SetFunctor() can't be build with gcc because of  
lack of operator!= for functor.
   void SetFunctor(const FunctorType& functor)
   {
     if ( m_Functor != functor )
       {
       m_Functor = functor;
       this->Modified();
       }
   }

In UnaryFunctorImageFilter and BinaryFunctorImageFilter, SetFunctor()  
method don't make the test m_Functor != functor, so everything works fine.
Can someone remove the test in TernaryFunctorImageFilter ?

Thanks,

Gaetan

-- 
Gaetan Lehmann <gaetan.lehmann at jouy.inra.fr>
Tel: +33 1 34 65 29 66
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
Web: http://voxel.jouy.inra.fr


More information about the Insight-developers mailing list