Dear forum,
while porting some code from gcc to CC5, I noted that the g++ viable way
#include <cmath>
float zero = std::sin (M_PI);
will not work on CC5 and
#include <math.h>
has to be used instead.
Is there some more compliant way to access pi instead of using the M_PI macro?
It would be nice if it existed because the M_PI doesn't know anything about its type and you're not warned when doing the wrong assignment. Weird things could happen.
Cheers & thanks, Peter.