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

Removed problematic event overloads for function-objects #24

Merged
merged 1 commit into from
Sep 29, 2016

Conversation

geky
Copy link
Contributor

@geky geky commented Sep 29, 2016

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.

Unforunately, 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 due 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.
@geky geky force-pushed the remove-function-object-overloads branch from b95a0ca to f414b78 Compare September 29, 2016 02:47
@geky geky merged commit 44e4e09 into master Sep 29, 2016
@geky geky deleted the remove-function-object-overloads branch September 29, 2016 02:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant