diff --git a/src/bindings/cxx/eo_cxx/eo_event.hh b/src/bindings/cxx/eo_cxx/eo_event.hh index 2120121cd8..a66a043d66 100644 --- a/src/bindings/cxx/eo_cxx/eo_event.hh +++ b/src/bindings/cxx/eo_cxx/eo_event.hh @@ -124,55 +124,23 @@ signal_connection make_signal_connection(std::unique_ptr& data, Eo* eo, ::Eo_ namespace _detail { template -Eina_Bool really_call_event(T& wrapper, F& f, void *, std::true_type, std::true_type) +void really_call_event(T& wrapper, F& f, void *, std::true_type) { f(wrapper); - return true; } template -Eina_Bool really_call_event(T& wrapper, F& f, void *info, std::true_type, std::false_type) +void really_call_event(T& wrapper, F& f, void *info, std::false_type) { f(wrapper, convert_to_event

(info)); - return true; -} -template -Eina_Bool really_call_event(T& wrapper, F& f, void *, std::false_type, std::true_type) -{ - return f(wrapper); -} -template -Eina_Bool really_call_event(T& wrapper, F& f, void *info, std::false_type, std::false_type) -{ - return f(wrapper, convert_to_event

(info)); } -template -struct is_void; template -struct is_void()(std::declval(), std::declval

()))>::value>::type> - : std::true_type {}; -template -struct is_void()(std::declval(), std::declval

()))>::value>::type> - : std::false_type {}; -template -struct is_void()(std::declval()))>::value>::type> - : std::true_type {}; -template -struct is_void()(std::declval()))>::value>::type> - : std::false_type {}; - -template -Eina_Bool -event_callback(void *data, ::Eo_Event const* event) +void event_callback(void *data, ::Eo_Event const* event) { T wrapper(::eo_ref(event->object)); F *f = static_cast(data); - return _detail::really_call_event - (wrapper, *f, event->info, is_void(), std::is_void

{}); + _detail::really_call_event + (wrapper, *f, event->info, std::is_void

{}); } }