cheaders=c: Where are overloaded cmath fuctions?
Danny Smith
danny_r_smith_2001@yahoo.co.nz
Fri Sep 27 21:38:00 GMT 2002
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?
If not, I have prepared a patch to put these math functions into c/std_cmath.h,
defining them in namespace std only. (Basically just a cut and paste from
c_std/std_cmath.h, with removal of all references to global namespace) The
mechansim for injecting them into global appears to be already present in
c-compatibility/math.h.
Should I submit this patch?
Danny
http://mobile.yahoo.com.au - Yahoo! Messenger for SMS
- Always be connected to your Messenger Friends
More information about the Libstdc++
mailing list