[Insight-developers] error in FloodFilledSpatialFunctionCondi tionalIterator

Miller, James V (Research) millerjv@crd.ge.com
Tue, 24 Sep 2002 14:17:32 -0400


I made the change to Get() so that it matched the prototype of 
the superclass. One of the compilers was complaining about the 
signature of the function changing as it went down the class 
hierarchy.



> -----Original Message-----
> From: Damion Shelton [mailto:dmshelto@andrew.cmu.edu]
> Sent: Tuesday, September 24, 2002 1:53 PM
> To: 'insight-developers@public.kitware.com'
> Subject: [Insight-developers] error in
> FloodFilledSpatialFunctionConditionalIterator
> 
> 
> Hi,
> 
> It appears that some changes made to 
> FloodFilledSpatialFunctionConditionalIterator last week are causing 
> build problems in our code. Specifically:
> 
> PixelType & Get(void)
> 
> was changed to
> 
> const PixelType & Get(void) const.
> 
> The former compiles correctly in the blox code while the latter does 
> not. I'm not sure why this isn't showing up in the 
> dashboards, since it 
> should affect the test as well (the code causing the problem is in 
> BloxCoreAtomImage.txx, which is exercised by 
> /BasicFilters/BloxCoreAtomTest.cxx).
> 
> In any case, the problem seems to be that the new version of 
> the Get() 
> function enforces a const return type while the existing code assumed 
> that Get returned an object that could be modified; i.e. 
> myIterator.Get().SetFoo(value);
> 
> Am I misinterpreting what's going on? Any suggestions?
> 
> Thanks,
> -Damion-
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers
>