Re: [OT] calling isnan
Re: [OT] calling isnan
- Subject: Re: [OT] calling isnan
- From: Bill Northcott <email@hidden>
- Date: Thu, 24 Feb 2005 09:16:25 +1100
On 24/02/2005, at 7:13 AM, Andreas Grosam <email@hidden> wrote:
I spent some time going around this with the R people.
Basically the story is this:
isnan() is a C99 extension to standard C.
Standard C++ is based on an older standard of C.
Hence isnan() is not part of standard C++ and may or may not work.
Thank you Bill for this explanation.
So, when does it may or may not work?
........(much removed)
I would appreciate it if somebody can really clarify this in detail.
Really, just don't use isnan() in C++ code. That is the end of the
story. Futzing about with defines, compile flags and other mystic
incantations will at best produce very fragile code, which will almost
certainly break every time there is a small change in the header
structure.
At some point in the future there may be a standard C++ isnan like
function. Right now no such thing exists. So don't try and pretend it
does.
Bill Northcott
Regards
Andreas Grosam
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden