[Rd] Standalone Mathlib, C++ and ISNAN()
Bill Northcott
w.northcott at unsw.edu.au
Fri Jan 7 00:56:05 CET 2005
On 06/01/2005, at 10:16 PM, Martyn Plummer wrote:
> I think the workaround is supposed to look like this:
> #define _GLIBCPP_USE_C99 1
> #include <cmath>
> #undef _GLIBCPP_USE_C99
> #include <iostream>
>
> using __gnu_cxx::isnan;
I thought I had tried that, but I was not sure. So I tried again this
morming, and it definitely does not work on MacOS X. The problem being
that the undefs in cmath are unconditional.
I presume it works on Linux because isnan is a function.
Bill Northcott
More information about the R-devel
mailing list