[Insight-developers] TernaryFunctorImageFilter::SetFunctor()
broken(at least with gcc)
Lorensen, William E (Research)
lorensen at crd.ge.com
Tue Aug 9 08:48:33 EDT 2005
Gaetan,
What filter is not compiling? The functors should provide a != operator. Actually, the Unary and Binary versions should be doing the same thing that the ternary is doing.
We'll look into this.
Bill
-----Original Message-----
From: insight-developers-bounces+lorensen=crd.ge.com at itk.org
[mailto:insight-developers-bounces+lorensen=crd.ge.com at itk.org]On Behalf
Of Gaetan Lehmann
Sent: Tuesday, August 09, 2005 7:31 AM
To: insight-developers at itk.org
Subject: [Insight-developers] TernaryFunctorImageFilter::SetFunctor()
broken(at least with gcc)
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
_______________________________________________
Insight-developers mailing list
Insight-developers at itk.org
http://www.itk.org/mailman/listinfo/insight-developers
More information about the Insight-developers
mailing list