mirror of
https://github.com/Naios/continuable.git
synced 2025-12-08 01:36:46 +08:00
Correct last commit
This commit is contained in:
parent
7b4831f5b2
commit
614af195cb
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user