Bug in cmath namespace

John Love-Jensen eljay@adobe.com
Mon Jan 30 14:27:00 GMT 2006


Hi Jense,

> I am not really sure whether this is a bug with respect to the ISO standard
> or whether I made a mistake here. Does anybody know why gcc/libstc++ behaves
> like that?

Not a bug.

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).

HTH,
--Eljay



More information about the Gcc-help mailing list