[vtk-developers] Did I break master? (isnan)

Sean McBride sean at rogue-research.com
Mon Mar 11 18:02:31 EDT 2013


On Mon, 11 Mar 2013 15:52:33 -0600, David Gobbi said:

>However... Common/Core/vtkMathConfigure.h.in has this:
>
>#include <cmath>
>#include <float.h>
>
>So on some platforms we get std::isnan() from cmath, on others we get
>::isnan() from float.h.  Ugly situation.  A safe but ugly solution is
>the following:
>
>Common/Core/vtkMathConfigure.h.in:
>#include <cmath>
>#include <math.h>
>#include <float.h>
>
>That covers all the bases.

Thanks David... I had figured out it was a header include problem, but ya beat me to the details.

I look forward to the day we can assume C++11 and use use std::isnan and friends. :)

I'll test/submit a patch...

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada





More information about the vtk-developers mailing list