system/UniqueFileDescriptor: import std::swap
This commit is contained in:
parent
db144a43ad
commit
56bded07b1
|
@ -60,7 +60,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
UniqueFileDescriptor &operator=(UniqueFileDescriptor &&other) noexcept {
|
UniqueFileDescriptor &operator=(UniqueFileDescriptor &&other) noexcept {
|
||||||
std::swap(fd, other.fd);
|
using std::swap;
|
||||||
|
swap(fd, other.fd);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue