[Insight-developers] Handling Floating Point Exceptions -- Implementation Questions

Bill Lorensen bill.lorensen at gmail.com
Mon Jul 12 17:00:27 EDT 2010


I suggest a class that does it ala vtkFloatingPointExceptions. Just
isolate all the ifdef junk in a similar class. I don't follow why that
won't work. Why change KWSYS?

Or we can keep supporting the Borland compiler which has done a great
job of uncovering floating point exceptions for 10 years in ITK.

:-,

Bill

On Mon, Jul 12, 2010 at 4:52 PM, kent williams
<norman-k-williams at uiowa.edu> wrote:
> This is with respect to this Mantis bug, which I'm taking over:
>
> http://public.kitware.com/Bug/view.php?id=10912
>
> There is code I can use to implement a simple class to turn on numerical
> exception handling, so that it can be turned on as a CMake option for
> testing on Linux and OS X targets.
>
> The question I have is this: I can inline this stuff into itkTestMain.h but
> it is kind of hairy -- not so much because the code is ugly, but because of
> a bunch of ifdefs for OS X and Linux.
>
> This sort of thing that should be incorporated into KWSys.
>
> There looks to be a vtkFloatingPointExceptions class in VTK but given what
> I've been able to find out, it wouldn't work on OS X, whereas the
> fe-handling-examples code would work on both Linux and OS X.
>
>  If I add, FPException.hxx/FPException.cxx to the Insight version of KWSys,
> will it get pushed into the main line KWSys (referenced by VTK, and
> elsewhere)?
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>


More information about the Insight-developers mailing list