This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ header file problem - is this a bug?
- From: Bill Northcott <w dot northcott at unsw dot edu dot au>
- To: "Dave Korn" <dave dot korn at artimi dot com>
- Cc: "'Andrew Pinski'" <pinskia at physics dot uc dot edu>, <gcc at gcc dot gnu dot org>, "'JAGS'" <jags at iarc dot fr>
- Date: Wed, 5 Jan 2005 16:54:53 +1100
- Subject: Re: C++ header file problem - is this a bug?
- References: <NUTMEG8fBPaMkYwEoNc00000c22@NUTMEG.CAM.ARTIMI.COM>
On 05/01/2005, at 6:27 AM, Dave Korn wrote:
Did you notice that you're writing C++, and ***NOT*** C?
As such, you should use the C++ library functions and headers, not
the C
library functions and headers, since they're for a different
programming
language.
Why aren't you using the std::isnan() function?
I can't find any documentation, and if I try to use it I get the
following:
error: `isnan' undeclared in namespace `std'
which is unsurprising since it does not appear to be declared or
defined in any header in /usr/include except math.h, which gets stuffed
by cmath.
Would those be adequate reasons not to use it?
Just how is one expected to get isnan() functionality in a C++ program?
Bill Northcott