diff --git a/Modules/Core/Common/include/itkMacro.h b/Modules/Core/Common/include/itkMacro.h index 05a8fc81fa1..fc6b4d0f8ae 100644 --- a/Modules/Core/Common/include/itkMacro.h +++ b/Modules/Core/Common/include/itkMacro.h @@ -355,12 +355,16 @@ namespace itk // prohibits the use of copy/move construction and copy/move assignment // functions. // -#define ITK_DISALLOW_COPY_AND_ASSIGN(TypeName) \ +#define ITK_DISALLOW_COPY_AND_MOVE(TypeName) \ TypeName(const TypeName &) = delete; \ TypeName & operator=(const TypeName &) = delete; \ TypeName(TypeName &&) = delete; \ TypeName & operator=(TypeName &&) = delete +#if !defined(ITK_FUTURE_LEGACY_REMOVE) +# define ITK_DISALLOW_COPY_AND_ASSIGN(TypeName) ITK_DISALLOW_COPY_AND_MOVE(TypeName) +#endif + /** Macro used to add standard methods to all classes, mainly type * information. */ #define itkTypeMacro(thisClass, superclass) \