reduce parameters needed for forwarding

This commit is contained in:
Denis Blank 2015-06-14 18:19:10 +02:00 committed by Naios
parent 4b23033f5c
commit a20cb9e9c6

View File

@ -153,12 +153,13 @@ using Continuable = detail::_ContinuableImpl<
namespace detail
{
template<typename _FTy, typename _RTy, typename... _ATy>
template<typename _RTy, typename... _ATy>
struct ContinuableFactory;
template<typename _FTy, typename _RTy, typename... _ATy>
struct ContinuableFactory<_FTy, _RTy, ::fu::identity<std::function<void(_ATy...)>&&>>
template<typename _RTy, typename... _ATy>
struct ContinuableFactory<_RTy, ::fu::identity<std::function<void(_ATy...)>&&>>
{
template<typename _FTy>
static auto CreateFrom(_FTy&& functional)
-> Continuable<_ATy...>
{
@ -169,7 +170,7 @@ namespace detail
template<typename _FTy>
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