mirror of
https://github.com/Naios/continuable.git
synced 2026-02-07 10:19:46 +08:00
test
This commit is contained in:
parent
08b68efc5e
commit
6ccef27fd1
@ -79,7 +79,7 @@ namespace detail
|
|||||||
public:
|
public:
|
||||||
// Empty for debugging
|
// Empty for debugging
|
||||||
_ContinuableImpl()
|
_ContinuableImpl()
|
||||||
: _released(false) { }
|
: _released(false), _callback_insert() { }
|
||||||
|
|
||||||
/// Deleted copy construct
|
/// Deleted copy construct
|
||||||
_ContinuableImpl(_ContinuableImpl const&) = delete;
|
_ContinuableImpl(_ContinuableImpl const&) = delete;
|
||||||
@ -129,16 +129,17 @@ namespace detail
|
|||||||
static auto chain(_CTy&& functional, _ContinuableImpl&& me)
|
static auto chain(_CTy&& functional, _ContinuableImpl&& me)
|
||||||
-> typename convert_void_to_continuable<_NewRTy>::type
|
-> typename convert_void_to_continuable<_NewRTy>::type
|
||||||
{
|
{
|
||||||
return _ContinuableImpl<ContinuableState<_STy...>, Callback<_NewATy...>>();
|
return typename convert_void_to_continuable<_NewRTy>::type();
|
||||||
|
// _ContinuableImpl<ContinuableState<_STy...>, Callback<_NewATy...>>();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename _CTy>
|
template<typename _CTy>
|
||||||
auto then(_CTy&& functional)
|
auto then(_CTy&& functional)
|
||||||
-> decltype(unary_chainer<fu::function_type_of_t<typename std::decay<_CTy>::type>::
|
-> decltype(unary_chainer<fu::function_type_of_t<typename std::decay<_CTy>::type>>::
|
||||||
chain(std::declval<_CTy>()))
|
chain(std::declval<_CTy>(), std::declval<_ContinuableImpl&&>()))
|
||||||
{
|
{
|
||||||
return unary_chainer<fu::function_type_of_t<_CTy>>::
|
return unary_chainer<fu::function_type_of_t<typename std::decay<_CTy>::type>>::
|
||||||
chain(std::forward<_CTy>(functional), std::move(*this));
|
chain(std::forward<_CTy>(functional), std::move(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user