fix bug in move constructor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user