TFormula::Eval non-const

Is there a reason why TFormula::Eval is non-const in root-6.03.04?

root.cern.ch/gitweb?p=root.git; … 0d;hb=HEAD

I don’t know the details, but naively I expect this method to be const. This change is breaking many codes.

Hi,

The method before was not really const, since inside a const cast was made. We will see if we can make the method const, but I would prefer to put a method const, when it is really const.
If you need to call from a const pointer to TFormula, you could change your code, if you are not worried about thread safety of your code, by casting your const Tformula * to a non const TFormula *, as it was done in the older version of ROOT.

Best Regards

Lorenzo