mirror of
https://github.com/Naios/continuable.git
synced 2026-02-09 03:06:41 +08:00
reduce parameters needed for forwarding
This commit is contained in:
parent
4b23033f5c
commit
a20cb9e9c6
@ -153,12 +153,13 @@ using Continuable = detail::_ContinuableImpl<
|
|||||||
|
|
||||||
namespace detail
|
namespace detail
|
||||||
{
|
{
|
||||||
template<typename _FTy, typename _RTy, typename... _ATy>
|
template<typename _RTy, typename... _ATy>
|
||||||
struct ContinuableFactory;
|
struct ContinuableFactory;
|
||||||
|
|
||||||
template<typename _FTy, typename _RTy, typename... _ATy>
|
template<typename _RTy, typename... _ATy>
|
||||||
struct ContinuableFactory<_FTy, _RTy, ::fu::identity<std::function<void(_ATy...)>&&>>
|
struct ContinuableFactory<_RTy, ::fu::identity<std::function<void(_ATy...)>&&>>
|
||||||
{
|
{
|
||||||
|
template<typename _FTy>
|
||||||
static auto CreateFrom(_FTy&& functional)
|
static auto CreateFrom(_FTy&& functional)
|
||||||
-> Continuable<_ATy...>
|
-> Continuable<_ATy...>
|
||||||
{
|
{
|
||||||
@ -169,7 +170,7 @@ namespace detail
|
|||||||
|
|
||||||
template<typename _FTy>
|
template<typename _FTy>
|
||||||
using continuable_factory_t = ContinuableFactory<
|
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
|
} // detail
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user