From 294ce7177c5315e2ada29acd184900dcda4289c8 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Mon, 28 Oct 2019 12:16:22 +0100 Subject: Reformat code with make format --- sigc++/functors/ptr_fun.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'sigc++/functors/ptr_fun.h') diff --git a/sigc++/functors/ptr_fun.h b/sigc++/functors/ptr_fun.h index c680a2e..288ac87 100644 --- a/sigc++/functors/ptr_fun.h +++ b/sigc++/functors/ptr_fun.h @@ -68,10 +68,10 @@ namespace sigc * * @ingroup ptr_fun */ -template +template class pointer_functor; -template +template class pointer_functor { using function_type = T_return (*)(T_args...); @@ -80,7 +80,6 @@ protected: function_type func_ptr_; public: - /// Constructs an invalid functor. pointer_functor() = default; @@ -93,9 +92,7 @@ public: * @param a Arguments to be passed on to the function. * @return The return value of the function invocation. */ - T_return operator()(type_trait_take_t... a) const { - return std::invoke(func_ptr_, a...); - } + T_return operator()(type_trait_take_t... a) const { return std::invoke(func_ptr_, a...); } }; /** Creates a functor of type sigc::pointer_functor which wraps an existing non-member function. @@ -104,7 +101,7 @@ public: * * @ingroup ptr_fun */ -template +template inline decltype(auto) ptr_fun(T_return (*func)(T_args...)) { return pointer_functor(func); -- cgit v1.2.1