Skip to content
This repository was archived by the owner on Aug 19, 2021. It is now read-only.

Commit 2595a65

Browse files
committed
Added member-function overloads for event functions
Added the following overloads: - event(T *, R (T::*)(A...), A...) - event(const T *, R (T::*)(A...) const, A...) - event(volatile T *, R (T::*)(A...) volatile, A...) - event(const volatile T *, R (T::*)(A...) const volatile, A...) To the following functions: - EventQueue::call - EventQueue::call_in - EventQueue::call_every - EventQueue::event - Event::Event This does allow the traditional form of mbed callbacks: Event<void(int)> event(&object, &Object::method, arg1); event->post(arg2); But also adds a significant number of overloads due to the cv attributes. It may be worth it in this situation to conform to the user's expectations.
1 parent 74e40e2 commit 2595a65

File tree

2 files changed

+1381
-182
lines changed

2 files changed

+1381
-182
lines changed

0 commit comments

Comments
 (0)