net/UniqueSocketDescriptor: import std::swap()
This commit is contained in:
parent
d5d6746ddf
commit
6ec335dcd5
@ -68,7 +68,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
UniqueSocketDescriptor &operator=(UniqueSocketDescriptor &&src) {
|
UniqueSocketDescriptor &operator=(UniqueSocketDescriptor &&src) {
|
||||||
std::swap(fd, src.fd);
|
using std::swap;
|
||||||
|
swap(fd, src.fd);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user