Correct last commit

This commit is contained in:
Naios 2015-07-21 18:36:28 +02:00
parent 7b4831f5b2
commit 614af195cb

View File

@ -92,13 +92,13 @@ public:
typedef std::function<void(Callback<_ATy...>&&)> 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 <typename _CTy>
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;
}