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

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to