mirror of
https://github.com/Naios/continuable.git
synced 2026-02-08 10:46:40 +08:00
Make an internal constructor private
This commit is contained in:
parent
a3ed34b0da
commit
f798343c78
@ -82,6 +82,14 @@ private:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Internal onstructor for continuation
|
||||||
|
template<typename... _RATy, typename _FTy>
|
||||||
|
Continuable(_FTy&& callback_insert, Continuable<_RATy...>&& right)
|
||||||
|
: _callback_insert(std::forward<_FTy>(callback_insert)), _released(right._released)
|
||||||
|
{
|
||||||
|
right._released = true;
|
||||||
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/// Deleted copy construct
|
/// Deleted copy construct
|
||||||
Continuable(Continuable const&) = delete;
|
Continuable(Continuable const&) = delete;
|
||||||
@ -98,13 +106,6 @@ public:
|
|||||||
Continuable(_FTy&& callback_insert)
|
Continuable(_FTy&& callback_insert)
|
||||||
: _callback_insert(std::forward<_FTy>(callback_insert)), _released(false) { }
|
: _callback_insert(std::forward<_FTy>(callback_insert)), _released(false) { }
|
||||||
|
|
||||||
template<typename... _RATy, typename _FTy>
|
|
||||||
Continuable(_FTy&& callback_insert, Continuable<_RATy...>&& right)
|
|
||||||
: _callback_insert(std::forward<_FTy>(callback_insert)), _released(right._released)
|
|
||||||
{
|
|
||||||
right._released = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Destructor which calls the dispatch chain if needed.
|
/// Destructor which calls the dispatch chain if needed.
|
||||||
~Continuable()
|
~Continuable()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user