Slider callback when range is changed

It would be nice to get a callback when a slider’s range is updated. I’m working on a class for automatically generating ticks for sliders, but there doesn’t seem to be a way to get notified when a slider’s range is updated. It seems like a lambda that is called (if not null) from juce::Slider::pimpl::updateRange() would work.

I prefer not to implement this using LookAndFeel because I’m imagining having multiple types of tickmarks at once, and I’d rather not create a LAF class for each instance of my widget if I wanted to cache positions, etc. Also, the tick marks might need to draw outside the bounds of the widget.