mirror of
https://github.com/boostorg/coroutine2.git
synced 2025-05-11 05:24:01 +00:00
remove std:swap() in move-ctor
This commit is contained in:
parent
d91c018653
commit
23c083e374
@ -66,8 +66,8 @@ pull_coroutine< T >::~pull_coroutine() {
|
|||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
pull_coroutine< T >::pull_coroutine( pull_coroutine && other) :
|
pull_coroutine< T >::pull_coroutine( pull_coroutine && other) :
|
||||||
cb_( nullptr) {
|
cb_( other.cb_) {
|
||||||
std::swap( cb_, other.cb_);
|
other.cb_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
@ -134,8 +134,8 @@ pull_coroutine< T & >::~pull_coroutine() {
|
|||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
pull_coroutine< T & >::pull_coroutine( pull_coroutine && other) :
|
pull_coroutine< T & >::pull_coroutine( pull_coroutine && other) :
|
||||||
cb_( nullptr) {
|
cb_( other.cb_) {
|
||||||
std::swap( cb_, other.cb_);
|
other.cb_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
@ -194,8 +194,8 @@ pull_coroutine< void >::~pull_coroutine() {
|
|||||||
|
|
||||||
inline
|
inline
|
||||||
pull_coroutine< void >::pull_coroutine( pull_coroutine && other) :
|
pull_coroutine< void >::pull_coroutine( pull_coroutine && other) :
|
||||||
cb_( nullptr) {
|
cb_( other.cb_) {
|
||||||
std::swap( cb_, other.cb_);
|
other.cb_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
|
@ -59,8 +59,8 @@ push_coroutine< T >::~push_coroutine() {
|
|||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
push_coroutine< T >::push_coroutine( push_coroutine && other) :
|
push_coroutine< T >::push_coroutine( push_coroutine && other) :
|
||||||
cb_( nullptr) {
|
cb_( other.cb_) {
|
||||||
std::swap( cb_, other.cb_);
|
other.cb_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
@ -122,8 +122,8 @@ push_coroutine< T & >::~push_coroutine() {
|
|||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
push_coroutine< T & >::push_coroutine( push_coroutine && other) :
|
push_coroutine< T & >::push_coroutine( push_coroutine && other) :
|
||||||
cb_( nullptr) {
|
cb_( other.cb_) {
|
||||||
std::swap( cb_, other.cb_);
|
other.cb_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
@ -176,8 +176,8 @@ push_coroutine< void >::~push_coroutine() {
|
|||||||
|
|
||||||
inline
|
inline
|
||||||
push_coroutine< void >::push_coroutine( push_coroutine && other) :
|
push_coroutine< void >::push_coroutine( push_coroutine && other) :
|
||||||
cb_( nullptr) {
|
cb_( other.cb_) {
|
||||||
std::swap( cb_, other.cb_);
|
other.cb_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline
|
inline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user