system/UniqueFileDescriptor: import std::swap
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user