Re: [Rd] Standalone Mathlib, C++ and ISNAN()

From: Bill Northcott <w.northcott_at_unsw.edu.au>
Date: Fri 07 Jan 2005 - 10:56:05 EST

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 Received on Fri Jan 07 10:08:07 2005

This archive was generated by hypermail 2.1.8 : Fri 07 Jan 2005 - 11:19:41 EST