JUCE
JUCE copied to clipboard
Modernize Timer to allow a std::function callback instead of requiring inheritance
Favor composition over inheritance provides higher flexibility. Allowing Timers to be named member variables provides hints to the purpose of the Timer. Supporting multiple Timers in one class becomes easier. Class hierarchies become less fragile.