From 1ce96d200b14c2080c8dcdb0dfa2abb136b053b8 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Sat, 2 Nov 2024 12:12:49 +0100 Subject: [PATCH] ENH: Explicitly allow copying `LabelObjectLine` objects Eases using `LabelObjectLine` objects on the stack. --- Modules/Filtering/LabelMap/include/itkLabelObjectLine.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h b/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h index b37f00b728b..25e63b7f9bb 100644 --- a/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h +++ b/Modules/Filtering/LabelMap/include/itkLabelObjectLine.h @@ -18,6 +18,7 @@ #ifndef itkLabelObjectLine_h #define itkLabelObjectLine_h +#include "itkMacro.h" #include "itkIndex.h" #include "itkIndent.h" @@ -42,6 +43,8 @@ template class ITK_TEMPLATE_EXPORT LabelObjectLine { public: + ITK_DEFAULT_COPY_AND_MOVE(LabelObjectLine); + static constexpr unsigned int ImageDimension = VImageDimension; using IndexType = Index;