15 Feb
2006
15 Feb
'06
12:31 p.m.
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