31 Jul
2009
31 Jul
'09
2:43 p.m.
Hi Alexei, Alexei Sheplyakov schrieb:
I'm afraid this code is a bit dangerous.
Suppose reader->second corresponds to the serial of some (GiNaC::)function (and not a pointer to a C++ function). ret = GiNaC::function(...) calls eval(), and it might throw an exception. We catch the exception and dereference ->second => oops...
you are right. I fixed it now. Thanks! Regards, Jens