Skip to content

Commit

Permalink
Don't use NoCopy class to prevent copying
Browse files Browse the repository at this point in the history
But delete copy operator/assignment instead

NP-205
  • Loading branch information
casperlamboo committed May 23, 2024
1 parent ed10d7d commit 0b16185
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion include/MeshGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@ class Matrix4x3D;
* One MeshGroup is a whole which is printed at once.
* Generally there is one single MeshGroup, though when using one-at-a-time printing, multiple MeshGroups are processed consecutively.
*/
class MeshGroup : public NoCopy
class MeshGroup
{
public:
MeshGroup() = default;

~MeshGroup() = default;

MeshGroup(MeshGroup&& other) noexcept = default;

MeshGroup& operator=(MeshGroup&& other) noexcept = default;

/* Copying a MeshGroup is not allowed */
MeshGroup(const MeshGroup& other) = delete;
MeshGroup& operator=(const MeshGroup& other) = delete;

std::vector<Mesh> meshes;
Settings settings;

Expand Down

0 comments on commit 0b16185

Please sign in to comment.