C99 numeric and TR1
Mateusz Loskot
mateusz@loskot.net
Mon Oct 2 20:27:00 GMT 2006
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
More information about the Libstdc++
mailing list