[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Success: kde 3.1 cvs running on sgi IRIX!
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2002-08-13 12:34:18
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 12 August 2002 12:03, Dominique Devriese wrote:
<snip>
> you can achieve the same effect by doing
> namespace std {
> extern "C" {
> #include "math.h"
> }
> }
<snip>

Sorry to come back again to this subject, but no, it's not the same as 
#include <cmath>. The latter provides overloaded mathematical functions 
for double, float and long double, where with math.h, you'll need to 
either define them on your own or use foo, foof, fool.

Example: abs is overloaded to span fabs, fabsf, and fabsl.

Marc

- -- 
Mutig warf sich die kleine Überwachungskamera zwischen Täter Opfer!
                                        --Rena Tangens / FoeBuD e.V.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9WPzK3oWD+L2/6DgRApIjAJ42Emk0KhH0kW40/exZQTJyL01hawCaAm9e
d5ldr2BDbxaIkRq4MS9CWGo=
=wKdz
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic