mirror of
https://github.com/boostorg/coroutine2.git
synced 2025-05-09 23:24:01 +00:00
Update push_coroutine.hpp
This commit is contained in:
parent
a3eb60c432
commit
6bf49d619a
@ -133,8 +133,7 @@ public:
|
|||||||
|
|
||||||
push_coroutine & operator=( push_coroutine && other) noexcept {
|
push_coroutine & operator=( push_coroutine && other) noexcept {
|
||||||
if ( this == & other) return * this;
|
if ( this == & other) return * this;
|
||||||
cb_ = other.cb_;
|
std::swap(cb_, other.cb_);
|
||||||
other.cb_ = nullptr;
|
|
||||||
return * this;
|
return * this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -211,8 +210,7 @@ public:
|
|||||||
|
|
||||||
push_coroutine & operator=( push_coroutine && other) noexcept {
|
push_coroutine & operator=( push_coroutine && other) noexcept {
|
||||||
if ( this == & other) return * this;
|
if ( this == & other) return * this;
|
||||||
cb_ = other.cb_;
|
std::swap(cb_, other.cb_);
|
||||||
other.cb_ = nullptr;
|
|
||||||
return * this;
|
return * this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user