fix bug in move constructor

This commit is contained in:
2020-07-31 00:00:26 +03:00
parent 79e17b48b8
commit 1d5c979607
6 changed files with 30 additions and 20 deletions

View File

@@ -86,8 +86,7 @@ public:
}
PIMap<Key, T> & operator =(PIMap<Key, T> && other) {
PIMap<Key, T> moved(std::move(other));
swap(moved);
swap(other);
return *this;
}