You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2021. It is now read-only.
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.
0 commit comments