InsightSoftwareConsortium / ITK

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
https://itk.org
Apache License 2.0
1.37k stars 660 forks source link

Default copy and move of iterators, using `ITK_DEFAULT_COPY_AND_MOVE` #4725

Closed N-Dekker closed 2 weeks ago

N-Dekker commented 2 weeks ago

Replaced hand-written copy-constructors and assignment operators of four iterators with the equivalent ITK_DEFAULT_COPY_AND_MOVE macro calls.


N-Dekker commented 2 weeks ago

I did look carefully at those hand-written copy-constructors and assignment operators to check that they really just do "the default thing". But honestly an extra glance wouldn't harm 😃

Note that some copy functions of other iterators seem to do non-default things, for example:

I did not include those seemingly non-default-behaving copy-functions with this pull request.