mirror of https://github.com/CGAL/cgal
Do not use swap for the move-assignment of TDS_3
We can write the operator easily without swap.
This commit is contained in:
parent
290c3a2011
commit
f7218dadd6
|
|
@ -251,8 +251,9 @@ public:
|
|||
Tds & operator= (Tds && tds)
|
||||
noexcept(noexcept(Tds(std::move(tds))))
|
||||
{
|
||||
Tds tmp(std::move(tds));
|
||||
swap(tmp);
|
||||
_cells = std::move(tds._cells);
|
||||
_vertices = std::move(tds._vertices);
|
||||
_dimension = std::exchange(tds._dimension, -2);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue