From 941203e56ea739000a35c7f77154abc31a48f0b8 Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Tue, 21 Jul 2015 18:36:28 +0200 Subject: [PATCH] Correct last commit --- include/Continuable.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/Continuable.h b/include/Continuable.h index 8143f7e..3025a9c 100644 --- a/include/Continuable.h +++ b/include/Continuable.h @@ -92,13 +92,13 @@ public: typedef std::function&&)> ForwardFunction; private: - /// Was the continuable released (invoked or transfered ownership) already? - bool _released; - /// Functional which expects a callback that is inserted from the Continuable /// to chain everything together ForwardFunction _callback_insert; + /// Was the continuable released (invoked or transfered ownership) already? + bool _released; + template void invoke(_CTy&& callback) { @@ -119,7 +119,7 @@ public: /// Move construct Continuable(Continuable&& right) - : _released(right._released), _callback_insert(std::move(right._callback_insert)) + : _callback_insert(std::move(right._callback_insert)), _released(right._released) { right._released = true; }