ARMmbed / mbed-events

DEPRECATED! This project has moved to mbed-os
https://github.com/ARMmbed/mbed-os/tree/master/events
Apache License 2.0
11 stars 6 forks source link

Removed problematic event overloads for function-objects #24

Closed geky closed 7 years ago

geky commented 7 years ago

Unfortunately, it is very difficult to infer the parameters of a function-object generically in C++03 without any additional type information. The current implementation fails to do so, and the compiler simply bails with "unable to deduce template parameter".

Rather than leaving the user with a small novel of error messages, this patch removes the problematic event overloads, leaving only event overloads for simple pointer types. As a side effect, the limited sfinae in mbed-events is no longer needed.