the original callback declarations offer limited usability in terms of instance methods and lambda expressions. furthermore, other parts of M5 lib already rely on functional lib so no new lib deps are added.
existing code is basically backwards compatible, however: delHandlers function won't work anymore if used with the (former) callback pointer. std::function instances cannot be compared concerning their underlying handler in a trivial way.
the original callback declarations offer limited usability in terms of instance methods and lambda expressions. furthermore, other parts of M5 lib already rely on functional lib so no new lib deps are added.
existing code is basically backwards compatible, however: delHandlers function won't work anymore if used with the (former) callback pointer. std::function instances cannot be compared concerning their underlying handler in a trivial way.