This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
cheaders=c: Where are overloaded cmath fuctions?
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Sat, 28 Sep 2002 14:38:51 +1000 (EST)
- Subject: cheaders=c: Where are overloaded cmath fuctions?
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