Closed geky closed 7 years ago
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.
@pan-, @bogdanm thoughts?
:+1:
Added the following overloads:
To the following functions:
This does allow the traditional form of mbed callbacks:
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.
@pan-, @bogdanm thoughts?