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