This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in cmath namespace
- From: "Jens Vollinga" <vollinga at gmx dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 30 Jan 2006 15:49:51 +0100 (MET)
- Subject: Re: Bug in cmath namespace
- References: <C0037E71.8CDA%eljay@adobe.com>
Hi,
> GCC's g++ includes the C <math.h>, #undef's the macros, does a "using
> ::sin"
> >from the global namespace, and adds inline versions of sin(float) and
> sin(long double).
thanks for the fast reply.
My problem was not to understand what gcc does. gcc works like you described
it above. My problem is whether gcc does it correctly according to the ISO
standard. In paragraph 4 of section 17.4.1.2 in that standard it says that
there should be no ::sin if you include cmath, only a std::sin. But since I
am not well trained in legal speak and have only a '98 draft version of the
standard available I am not sure if a am right or wrong.
Jens
--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner