From a20cb9e9c62b63ece5b7a23066f05dcfbc85696d Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Sun, 14 Jun 2015 18:19:10 +0200 Subject: [PATCH] reduce parameters needed for forwarding --- fluent/Continuable.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fluent/Continuable.h b/fluent/Continuable.h index 14897a3..480bc03 100644 --- a/fluent/Continuable.h +++ b/fluent/Continuable.h @@ -153,12 +153,13 @@ using Continuable = detail::_ContinuableImpl< namespace detail { - template + template struct ContinuableFactory; - template - struct ContinuableFactory<_FTy, _RTy, ::fu::identity&&>> + template + struct ContinuableFactory<_RTy, ::fu::identity&&>> { + template static auto CreateFrom(_FTy&& functional) -> Continuable<_ATy...> { @@ -169,7 +170,7 @@ namespace detail template using continuable_factory_t = ContinuableFactory< - _FTy, ::fu::return_type_of_t<_FTy>, ::fu::argument_type_of_t<_FTy>>; + ::fu::return_type_of_t<_FTy>, ::fu::argument_type_of_t<_FTy>>; } // detail