Could anyone kindly explain why Listener callbacks (e.g. Slider::Listener’s methods) take Broadcaster* arguments rather than Broadcaster& arguments?
Does this mean that it is not guaranteed that the Broadcaster outlives the Listener? If that is the case, when implementing the Listener callback functions, must I always check that the Broadcaster* points to a valid object before accessing into it (e.g. Slider->getValue()) and if so, how (given that it’s just a raw pointer)?