This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: C99 numeric and TR1
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Mateusz Loskot <mateusz at loskot dot net>
- Cc: libsdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 02 Oct 2006 22:42:31 +0200
- Subject: Re: C99 numeric and TR1
- References: <45217609.6020208@loskot.net>
Mateusz Loskot wrote:
I use GCC 4.0.3 and I have TR1 library but as I see there are no
numeric functions.
We will deliver those specific tr1 bits only with gcc4.2.0, you cannot
possibly have them in 4.0.x. In 4.2.0 you will find those functions in
namespace std::tr1, by including <tr1/cmath>. You can track the status
of our tr1 implementation in:
http://gcc.gnu.org/onlinedocs/libstdc++/ext/tr1.html
The latter is about mainline, would be 4.2.0.
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?
I was hoping the issue was settled ;) Anyway... Please do not confuse
tr1, which is indeed a technical report, not normative, a step toward
the next C++ standard, with any released standard. As you know well by
now, the next standard will include the facilities at issue in namespace
std. In fact, we are already delivering those facilities in std, and,
per a recently discussed policy (just search the archives), we consider
that appropriate because the facilities are already in the draft of C++0x.
Paolo.