This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
C99 numeric and TR1
- From: Mateusz Loskot <mateusz at loskot dot net>
- To: libsdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 02 Oct 2006 22:26:49 +0200
- Subject: C99 numeric and TR1
Hi,
Recently, I was asking why std namespace consists of isfinite() function
from C99 standard. Also, I was explained that next release of C++
standard will include some of C99 elements.
Yesterday, I was reading Pete Becker's book "The C++ Standard Library
Extensions" and I noticed interesting statement:
"(...) The C99 changes to the C library are, however, included in the
TR1 library, along with two dozen new math functions that are now being
considered for addition to C (...)"
Next, in chapter 12.7, among others, isfinite() function is mentioned as
already included in TR1 extensions.
All these functions are available in <cmath>, nested in std::tr1 namespaces.
I use GCC 4.0.3 and I have TR1 library but as I see there are no
numeric functions.
May be my understanding is incorrect but I'm trying to guess why
GCC/libstdc++ polutes std namespaces with functions like isfinite(),
as an extension, instead of putting it into std::tr1, the namespace
already available in GCC 4.x. Any comments?
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net