-
-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Fix reverse iterator increment return type #850
BUG: Fix reverse iterator increment return type #850
Conversation
Please add a test to verify what you have written has correct behavior. The issue reported has a test which can be expanded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to have a fix for the old ReverseIterator
, and have the return value of operator++
properly tested. Thanks @maekclena .
Still I hope that FixedArray::ReverseIterator
can eventually be removed from ITK. @phcerdan Wasn't your idea to eventually remove the old ReverseIterator
, when you suggested me to write a new one, for FixedArray
, at #757 (comment) ?
No, it wasn't my idea and the first time I hear that removing ReverseIterator is desired. In #757 you were adding compatibility of FixedArray to the What is really desired is to fix bugs, so +100 to this PR and @maekclena! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to check again... shouldn't operator++()
return a reference to the iterator itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...
@dzenanz I still had a technical question about this PR: #850 (review) So why did you already merge? |
@maekclena For your information, this example code still fails now, even with your fix being merged:
|
@N-Dekker this PR did what its title says "Fix ... return type". All the increment/decrement operators return You could expand and reopen the issue, which might get addressed in another PR. Which you might attempt yourself? |
@dzenanz First of all, I do agree that the PR as it is merged now does already improve the behavior of the old reverse iterator. But then again, it still does not seem interesting to me to keep maintaining the old Advantages of the new
The old |
Can you make a PR which deprecates it? |
I would like to, thanks @dzenanz, but isn't it better now to postpone such deprecation until after the release of ITK5? |
If we are going to deprecate it soon, before the release is probably better than after. |
Modules/IO/DCMTK/include/itkDCMTKImageIO.h:31: error: "\ingroup non" not set in class DCMTKImageIOEnums. Modules/IO/DCMTK/include/itkDCMTKImageIO.h:38: error: "\ingroup ITKIODCMTK" not set in class LogLevel. 1/1 Test InsightSoftwareConsortium#850: ITKIODCMTKInDoxygenGroup .........***Failed 0.04 sec
Modules/IO/DCMTK/include/itkDCMTKImageIO.h:31: error: "\ingroup non" not set in class DCMTKImageIOEnums. Modules/IO/DCMTK/include/itkDCMTKImageIO.h:38: error: "\ingroup ITKIODCMTK" not set in class LogLevel. 1/1 Test InsightSoftwareConsortium#850: ITKIODCMTKInDoxygenGroup .........***Failed 0.04 sec
Modules/IO/DCMTK/include/itkDCMTKImageIO.h:31: error: "\ingroup non" not set in class DCMTKImageIOEnums. Modules/IO/DCMTK/include/itkDCMTKImageIO.h:38: error: "\ingroup ITKIODCMTK" not set in class LogLevel. 1/1 Test InsightSoftwareConsortium#850: ITKIODCMTKInDoxygenGroup .........***Failed 0.04 sec
Fixes #775.