Do not take argument of P3T3 operator= by reference

Since we're swapping, it needs to be copy
This commit is contained in:
Mael Rouxel-Labbé 2018-06-27 17:12:22 +02:00
parent 3e1bf168f8
commit 9b5b558101
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ public:
virtual ~Periodic_3_triangulation_3() {} virtual ~Periodic_3_triangulation_3() {}
/** @name Assignment */ //@{ /** @name Assignment */ //@{
Periodic_3_triangulation_3& operator=(Periodic_3_triangulation_3& tr) Periodic_3_triangulation_3& operator=(Periodic_3_triangulation_3 tr)
{ {
swap(tr); swap(tr);
return *this; return *this;