diff --git a/hal/api/Callback.h b/hal/api/Callback.h index a587b24b32..a6d63790e7 100644 --- a/hal/api/Callback.h +++ b/hal/api/Callback.h @@ -4436,54 +4436,6 @@ Callback callback(R (*func)(const volatile T*), const volatile T *arg) { return Callback(func, arg); } -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - /** Create a callback class with type infered from the arguments * * @param obj Optional pointer to object to bind to function @@ -4757,54 +4709,6 @@ Callback callback(R (*func)(const volatile T*, A0), const volatile T *arg return Callback(func, arg); } -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - /** Create a callback class with type infered from the arguments * * @param obj Optional pointer to object to bind to function @@ -5078,54 +4982,6 @@ Callback callback(R (*func)(const volatile T*, A0, A1), const volatil return Callback(func, arg); } -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - /** Create a callback class with type infered from the arguments * * @param obj Optional pointer to object to bind to function @@ -5399,54 +5255,6 @@ Callback callback(R (*func)(const volatile T*, A0, A1, A2), const return Callback(func, arg); } -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - /** Create a callback class with type infered from the arguments * * @param obj Optional pointer to object to bind to function @@ -5720,54 +5528,6 @@ Callback callback(R (*func)(const volatile T*, A0, A1, A2, A3 return Callback(func, arg); } -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - /** Create a callback class with type infered from the arguments * * @param obj Optional pointer to object to bind to function @@ -6041,54 +5801,6 @@ Callback callback(R (*func)(const volatile T*, A0, A1, A2 return Callback(func, arg); } -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - /** Create a callback class with type infered from the arguments * * @param obj Optional pointer to object to bind to function