diff --git a/src/util/BindMethod.hxx b/src/util/BindMethod.hxx index d43b34948..38996030b 100644 --- a/src/util/BindMethod.hxx +++ b/src/util/BindMethod.hxx @@ -126,12 +126,10 @@ MakeWrapperFunction() noexcept * @param instance the instance of #T to be bound */ template -constexpr auto +constexpr BoundMethod::plain_signature> BindMethod(typename BindMethodDetail::SignatureHelper::class_type &instance) noexcept { - using H = BindMethodDetail::SignatureHelper; - using plain_signature = typename H::plain_signature; - return BoundMethod{ + return { &instance, BindMethodDetail::MakeWrapperFunction(), }; @@ -156,12 +154,10 @@ BindMethod(typename BindMethodDetail::SignatureHelper::class_t * @param function the function pointer */ template -constexpr auto +constexpr BoundMethod::plain_signature> BindFunction() noexcept { - using H = BindMethodDetail::SignatureHelper; - using plain_signature = typename H::plain_signature; - return BoundMethod{ + return { nullptr, BindMethodDetail::MakeWrapperFunction(), };