From db6edcd473a684420e9a7611b24462df21165c1b Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 24 Apr 2022 17:13:52 +0200 Subject: style: improve function and brace styling --- src/DI/factory.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/DI/factory.hpp') diff --git a/src/DI/factory.hpp b/src/DI/factory.hpp index 13d0eb5..035e557 100644 --- a/src/DI/factory.hpp +++ b/src/DI/factory.hpp @@ -83,7 +83,9 @@ struct is_core_convertible : public std::false_type template struct is_core_convertible< - Tp, Up, decltype(static_cast(0)(static_cast(0)()))> + Tp, + Up, + decltype(static_cast(0)(static_cast(0)()))> : public std::true_type { }; @@ -154,8 +156,9 @@ private: template Factory(Return (*)(Args...)) -> Factory; -template > +template < + class Function, + class Stripped = strip_signature_t> Factory(Function) -> Factory; template -- cgit v1.2.3-18-g5258