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]

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


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