Mesh: implemented recommended move constructor and move assignment for Point3d

This commit is contained in:
wmayer
2022-05-17 11:55:33 +02:00
parent 3fbc9992e8
commit 354bfb5c5b

View File

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