From 988dcf048a14adb66b74b26ce00e7b59dc84ab47 Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Tue, 16 Jun 2015 12:45:14 +0200 Subject: [PATCH] this works on unix... --- fluent/Continuable.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/fluent/Continuable.h b/fluent/Continuable.h index e4dbf40..fed521f 100644 --- a/fluent/Continuable.h +++ b/fluent/Continuable.h @@ -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;