TH1::Fit const qualifier

Why TH1::Fit has not const qualifier? I don’t want to add the fitted function to the list of fitted function and I would like to have a Fit method with const qualifier.

It cannot be const because the fitted function is added by default to the histogram list of functions and therefore the histogram object is modified.

You can use const_cast if you need to use TH1::Fit in a const function and you are using the option to not adding the fitted function.