Skip to content
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

STYLE: Deprecated FixedArray member functions rBegin() and rEnd() #857

Merged
merged 1 commit into from
May 11, 2019
Merged

STYLE: Deprecated FixedArray member functions rBegin() and rEnd() #857

merged 1 commit into from
May 11, 2019

Conversation

N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented May 10, 2019

Declared FixedArray member functions rBegin() and rEnd()
legacy-only, as they are superseded by rbegin() and `rend()'.

The new reverse iterators can be passed directly to an std algorithm,
e.g., std::sort(fixedArray.rbegin(), fixedArray.rend()). Unlike the
old reverse iterators, the new ones support random access iteration.

Deprecation suggested by @dzenanz while discussing pull request #850

Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @N-Dekker

@thewtex thewtex requested review from dzenanz, maekclena and phcerdan May 10, 2019 21:49
@N-Dekker
Copy link
Contributor Author

Thanks, @dzenanz and @thewtex

Force-pushed, just to fix the deprecation warnings in itkFixedArrayTest.cxx, to preserve the unit test added by @maekclena even when legacy is removed (ITK_LEGACY_REMOVE), and to clarify the documentation + commit message.

Declared `FixedArray` member functions `rBegin()` and `rEnd()`
legacy-only, as they are superseded by `rbegin()` and `rend()'.

The new reverse iterators can be passed directly to an `std` algorithm,
e.g., `std::sort(fixedArray.rbegin(), fixedArray.rend())`. Unlike the
old reverse iterators, the new ones support random access iteration.

Deprecation suggested by @dzenanz while discussing pull request #850
@dzenanz dzenanz merged commit d10a28d into InsightSoftwareConsortium:master May 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants