forked from boostorg/unordered
Remove unnecessary self-alias checks in copy-assignment operators
This commit is contained in:
@ -101,9 +101,7 @@ namespace boost {
|
||||
|
||||
unordered_flat_map& operator=(unordered_flat_map const& other)
|
||||
{
|
||||
if (this != &other) {
|
||||
table_ = other.table_;
|
||||
}
|
||||
table_ = other.table_;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
@ -100,9 +100,7 @@ namespace boost {
|
||||
|
||||
unordered_flat_set& operator=(unordered_flat_set const& other)
|
||||
{
|
||||
if (this != &other) {
|
||||
table_ = other.table_;
|
||||
}
|
||||
table_ = other.table_;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user