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