[GiNaC-devel] new function class

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


Hi,

Richard B. Kreckel schrieb:
>> using namespace GiNaC;
>> ex r = log10(1.0);
>>
>> would not call GiNaC::log10 but ::log10() [-> std::log10()] without 
>> giving any hint to the user.
> 
> So what about ex r = log10(1)?

it calls GiNaC::log10 and therefore r contains GiNaC::log(1).
But as soon as I say

using namespace std;

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.

Regards,
Jens



More information about the GiNaC-devel mailing list