mirror of
https://github.com/Naios/continuable.git
synced 2026-01-01 03:12:12 +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:
|
||||
/// Deleted copy construct
|
||||
Continuable(Continuable const&) = delete;
|
||||
@ -98,13 +106,6 @@ public:
|
||||
Continuable(_FTy&& callback_insert)
|
||||
: _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.
|
||||
~Continuable()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user