Skip to content

Commit

Permalink
Merge pull request InsightSoftwareConsortium#4639 from jhlegarreta/Fi…
Browse files Browse the repository at this point in the history
…xImplicitCopyWarningsReadWriteExc

COMP: Fix implicit copy constructor definition deprecation warnings
  • Loading branch information
thewtex committed May 3, 2024
2 parents 4257102 + d1ebdfa commit e5a84a0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Modules/IO/ImageBase/include/itkImageFileReaderException.h
Expand Up @@ -52,6 +52,13 @@ class ITKIOImageBase_EXPORT ImageFileReaderException : public ExceptionObject

/** Has to have empty throw(). */
~ImageFileReaderException() noexcept override;

ImageFileReaderException(const ImageFileReaderException &) = default;
ImageFileReaderException(ImageFileReaderException &&) = default;
ImageFileReaderException &
operator=(const ImageFileReaderException &) = default;
ImageFileReaderException &
operator=(ImageFileReaderException &&) = default;
};
} // namespace itk
#endif // itkImageFileReaderException_h
7 changes: 7 additions & 0 deletions Modules/IO/ImageBase/include/itkImageFileWriter.h
Expand Up @@ -55,6 +55,13 @@ class ITKIOImageBase_EXPORT ImageFileWriterException : public ExceptionObject

/** Has to have empty throw(). */
~ImageFileWriterException() noexcept override;

ImageFileWriterException(const ImageFileWriterException &) = default;
ImageFileWriterException(ImageFileWriterException &&) = default;
ImageFileWriterException &
operator=(const ImageFileWriterException &) = default;
ImageFileWriterException &
operator=(ImageFileWriterException &&) = default;
};

/** \class ImageFileWriter
Expand Down
7 changes: 7 additions & 0 deletions Modules/IO/MeshBase/include/itkMeshFileReaderException.h
Expand Up @@ -49,6 +49,13 @@ class ITKIOMeshBase_EXPORT MeshFileReaderException : public ExceptionObject
unsigned int line,
const char * message = "Error in IO",
const char * loc = "Unknown");

MeshFileReaderException(const MeshFileReaderException &) = default;
MeshFileReaderException(MeshFileReaderException &&) = default;
MeshFileReaderException &
operator=(const MeshFileReaderException &) = default;
MeshFileReaderException &
operator=(MeshFileReaderException &&) = default;
};
} // end namespace itk

Expand Down
7 changes: 7 additions & 0 deletions Modules/IO/MeshBase/include/itkMeshFileWriterException.h
Expand Up @@ -49,6 +49,13 @@ class ITKIOMeshBase_EXPORT MeshFileWriterException : public ExceptionObject
unsigned int line,
const char * message = "Error in IO",
const char * loc = "Unknown");

MeshFileWriterException(const MeshFileWriterException &) = default;
MeshFileWriterException(MeshFileWriterException &&) = default;
MeshFileWriterException &
operator=(const MeshFileWriterException &) = default;
MeshFileWriterException &
operator=(MeshFileWriterException &&) = default;
};
} // end namespace itk

Expand Down

0 comments on commit e5a84a0

Please sign in to comment.