mirror of
https://github.com/UltraCoderRU/telebotxx.git
synced 2026-01-28 04:05:13 +00:00
Unnecessary move-assignment operator removed.
This commit is contained in:
parent
9ec8037240
commit
96394c3e0d
2 changed files with 0 additions and 3 deletions
|
|
@ -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_;
|
||||||
|
|
|
||||||
|
|
@ -68,5 +68,3 @@ const User& User::operator=(User other)
|
||||||
swap(other);
|
swap(other);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
User& User::operator=(User&& other) = default;
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue