Remove unnecessary self-alias checks in copy-assignment operators

This commit is contained in:
Christian Mazakas committed 2022-10-04 14:49:40 -07:00
1 parent 7dfcdc6da8
commit e9c3ed1531
2 files changed
+2 -6

No files matched your search

@@ -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;
}