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; }