Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2003 06:46:01 -0600
From:      David Leimbach <leimy2k@mac.com>
To:        Stefan Farfeleder <stefan@fafoe.dyndns.org>
Cc:        current@freebsd.org
Subject:   Re: isnan() with gcc 3.2.2 on FreeBSD 5.0-C
Message-ID:  <BA8C8FA9-6376-11D7-A778-0003937E39E0@mac.com>
In-Reply-To: <20030331084936.1F1393FA9@fafoe.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Monday, March 31, 2003, at 02:49 AM, Stefan Farfeleder wrote:

>
> The isnan() macro is a new feature of C99 and thus not (yet) part of
> C++.  Nevertheless you can use -D_GLIBCPP_USE_C99 to include this and

There may be no guarantee that any new parts of C99 ever make it into 
the C++
language.

C++ has always been a superset of a subset of C :).  That is to say 
that C is not
100% contained within C++.

This has gotten to be more of a problem since
the C99 standard has added things the C++ already had as well such as
_Complex and the very weird tgmath.h header that seemingly cannot even 
be
written with standard C. [I have seen the version that came with RedHat 
linux and
it involved a bunch of gcc specific code].

Anyway... Its a real world problem now and the errors people are seeing 
are due to
the fact that g++-3.x is more standards compliant than 2.x was.

Dave



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA8C8FA9-6376-11D7-A778-0003937E39E0>