From bd5f6cbc7ba311b35a460925670c8837898dd824 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Dec 2021 22:47:20 +0100 Subject: [PATCH] util/BindMethod: simplify more templates using "auto" template arguments --- src/util/BindMethod.hxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/util/BindMethod.hxx b/src/util/BindMethod.hxx index cafa0bddf..5066ece66 100644 --- a/src/util/BindMethod.hxx +++ b/src/util/BindMethod.hxx @@ -191,11 +191,11 @@ struct FunctionTraits { * @param P the plain function pointer type * @param function the function pointer */ -template +template struct BindFunctionWrapperGenerator; -template -struct BindFunctionWrapperGenerator { +template +struct BindFunctionWrapperGenerator { static R Invoke(void *, Args... args) noexcept(NoExcept) { return function(std::forward(args)...); } @@ -206,7 +206,6 @@ typename MethodWrapperWithSignature::function_pointer MakeBindFunctionWrapper() noexcept { return BindFunctionWrapperGenerator::Invoke; }