Unnecessary move-assignment operator removed.

This commit is contained in:
Kirill Kirilenko 2016-09-26 20:57:36 +03:00
parent 9ec8037240
commit 96394c3e0d
2 changed files with 0 additions and 3 deletions

View file

@ -47,7 +47,6 @@ namespace telebotxx
void swap(User&) noexcept; void swap(User&) noexcept;
const User& operator=(User other); const User& operator=(User other);
User& operator=(User&& other);
private: private:
int id_; int id_;

View file

@ -68,5 +68,3 @@ const User& User::operator=(User other)
swap(other); swap(other);
return *this; return *this;
} }
User& User::operator=(User&& other) = default;