This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug in cmath namespace


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]