mirror of
https://github.com/Naios/continuable.git
synced 2025-12-08 09:47:43 +08:00
this works on unix...
This commit is contained in:
parent
cb56f19906
commit
988dcf048a
@ -179,13 +179,13 @@ namespace detail
|
||||
ForwardFunction callback = std::move(_callback_insert);
|
||||
|
||||
return typename unary_chainer_t<_CTy>::result_t(
|
||||
[functional, callback](typename unary_chainer_t<_CTy>::callback_t&&)
|
||||
[functional, callback](typename unary_chainer_t<_CTy>::callback_t&& call_next)
|
||||
{
|
||||
log_type(callback, "calling");
|
||||
|
||||
callback([functional](_ATy... args)
|
||||
callback([functional, call_next](_ATy... args)
|
||||
{
|
||||
// log_type(functional, "invoking");
|
||||
log_type(functional, "invoking");
|
||||
|
||||
auto continuable =
|
||||
unary_chainer_t<_CTy>::base::invoke(functional, std::forward<_ATy>(args)...);
|
||||
@ -194,6 +194,12 @@ namespace detail
|
||||
|
||||
// auto cc = continuable;
|
||||
|
||||
auto src_tttt = std::move(call_next);
|
||||
|
||||
auto tar_tttt = std::move(continuable._callback_insert);
|
||||
|
||||
tar_tttt(std::move(src_tttt));
|
||||
|
||||
int i = 0;
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user