Boost logo

Boost Users :

Subject: Re: [Boost-users] isnan stopped working
From: John Maddock (john_at_[hidden])
Date: 2009-01-05 04:56:17


> isnan() and family seems to have stopped working in my code. The only
> thing
> I can remember is updating from 1.36 to 1.37. Any idea why the following
> wouldn't work?
>
> float nan = FP_NAN;
> int ret = 0xdeadbeef;
> ret = (boost::math::isnan)(nan);
>
> isnan never returns anything. The value of ret is still 0xdeadbeef after
> invoking isnan()
>
> I'm on OSX10.5.6 using XCode 3 if that helps.

No idea: the tests all seem to be passing on that platform. Are you able to
step into the code for isnan to see what's happening? It has to return
*something* IMO...

John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net