Update push_coroutine.hpp

This commit is contained in:
Oliver Kowalke 2017-12-20 06:22:27 +00:00 committed by GitHub
parent a3eb60c432
commit 6bf49d619a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,8 +133,7 @@ public:
push_coroutine & operator=( push_coroutine && other) noexcept {
if ( this == & other) return * this;
cb_ = other.cb_;
other.cb_ = nullptr;
std::swap(cb_, other.cb_);
return * this;
}
@ -211,8 +210,7 @@ public:
push_coroutine & operator=( push_coroutine && other) noexcept {
if ( this == & other) return * this;
cb_ = other.cb_;
other.cb_ = nullptr;
std::swap(cb_, other.cb_);
return * this;
}