This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: cheaders=c: Where are overloaded cmath fuctions?


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


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