cheaders=c: Where are overloaded cmath fuctions?
J.T. Conklin
jtc@acorntoolworks.com
Tue Oct 15 11:35:00 GMT 2002
Danny Smith <danny_r_smith_2001@yahoo.co.nz> writes:
> Unlike cheaders=cstd model, cmath in cheaders=c model does not
> contain definitions of std C++98 math functions (except modf)
> overloaded for float and long double nor function versions of C99
> classification macros.
>
> Is there a reason for this? Are they the responsibility of
> C-runtime headers for cheaders=c model?
As a user of a system (QNX) which uses cheaders=c, this is my prefered
interpretation. I've had to comment out the existing abs() and modf()
overloads to avoid conflicts with the system headers. So rather than
add additional overloaded functions, I think the ones that exist should
be removed.
--jtc
--
J.T. Conklin
More information about the Libstdc++
mailing list