diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-19 12:36:54 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-19 12:36:54 +0100 |
commit | 56bded07b14082db3a5441603ef752de4b6ed681 (patch) | |
tree | d18276d3a34e182497aaf8c465b33311853e4e8f /src/system | |
parent | db144a43ad4b926cd9259f9353b9df2177710739 (diff) |
system/UniqueFileDescriptor: import std::swap
Diffstat (limited to 'src/system')
-rw-r--r-- | src/system/UniqueFileDescriptor.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/system/UniqueFileDescriptor.hxx b/src/system/UniqueFileDescriptor.hxx index 3175a093a..b8da92932 100644 --- a/src/system/UniqueFileDescriptor.hxx +++ b/src/system/UniqueFileDescriptor.hxx @@ -60,7 +60,8 @@ public: } UniqueFileDescriptor &operator=(UniqueFileDescriptor &&other) noexcept { - std::swap(fd, other.fd); + using std::swap; + swap(fd, other.fd); return *this; } |