Mesh: implemented recommended move constructor and move assignment for Point3d
This commit is contained in:
@@ -45,6 +45,10 @@ struct Point3d
|
||||
{
|
||||
}
|
||||
|
||||
Point3d(Point3d&& pnt) : p(pnt.p), i(pnt.i)
|
||||
{
|
||||
}
|
||||
|
||||
~Point3d()
|
||||
{
|
||||
}
|
||||
@@ -70,6 +74,12 @@ struct Point3d
|
||||
this->i = other.i;
|
||||
}
|
||||
|
||||
inline void operator=(Point3d&& other)
|
||||
{
|
||||
this->p = other.p;
|
||||
this->i = other.i;
|
||||
}
|
||||
|
||||
Base::Vector3f p;
|
||||
PointIndex i;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user