[GiNaC-devel] new function class

Jens Vollinga vollinga at physik.uni-wuppertal.de
Wed Feb 15 12:55:11 CET 2006


Hi,

Jens Vollinga schrieb:
> the compiler will complain and forces the user to disambiguate the call. 
> Then you would have to write either std::log10 or GiNaC::log10, which 
> makes sense to me.

one additional remark:

#include <cmath>
#include <ginac/ginac.h>

int main()
{
   GiNaC::symbol x("x");
   GiNaC::ex r = sin(x);
   return 0;
}

compiles without errors (gcc 4.0.2) !?! Note that it doesn't say 
GiNaC::sin. Even

...
{
   GiNaC::symbol x("x");
   sin(x);
   return 0;
}
...

compiles!

Now I am confused again ...

Regards,
Jens


More information about the GiNaC-devel mailing list