summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-09-08 00:27:45 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-09-08 00:27:50 +0100
commita758fd0f38393dc8c083f97b3f7df8b6bb4dc165 (patch)
tree88a5a1760aacdf85c348a95dd5875c9de4c34a5d
parentRemove the need for Default<T> (diff)
downloadslicer-a758fd0f38393dc8c083f97b3f7df8b6bb4dc165.tar.bz2
slicer-a758fd0f38393dc8c083f97b3f7df8b6bb4dc165.tar.xz
slicer-a758fd0f38393dc8c083f97b3f7df8b6bb4dc165.zip
No need to delete move/copy for ModelPart
-rw-r--r--slicer/slicer/modelParts.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/slicer/slicer/modelParts.h b/slicer/slicer/modelParts.h
index b4d1eb7..98de0d6 100644
--- a/slicer/slicer/modelParts.h
+++ b/slicer/slicer/modelParts.h
@@ -128,13 +128,9 @@ namespace Slicer {
class DLL_PUBLIC ModelPart {
public:
ModelPart() = default;
- ModelPart(const ModelPart &) = delete;
- ModelPart(ModelPart &&) = delete;
-
virtual ~ModelPart() = default;
- ModelPart & operator=(const ModelPart &) = delete;
- ModelPart & operator=(ModelPart &&) = delete;
+ SPECIAL_MEMBERS_DEFAULT(ModelPart);
template<typename MP> static void Make(typename MP::element_type * t, const ModelPartHandler &);
template<typename T> static void CreateFor(T * t, const ModelPartHandler &);