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

[span.overview] fix reverse_iterator for span #2112

Merged
merged 1 commit into from Jun 27, 2018

Conversation

AlisdairM
Copy link
Contributor

There is a common convention to omit 'std::' when not strictly needed,
other than for 'std::move' and 'std::forward'. A third case is for
'reverse_iterator' and 'const_reverse_iterator' type aliases inside a
class definition, as the leading 'reverse_iterator' type alias hides
the 'std' version from the 'const_reverse_iterator' definition, and
subsequently fails to compile. This patch restore the class definition
to a safely copy/pastable state.

An additional review indicated this convention has been applied correctly
for every othert potential occurrence in the library.

There is a common convention to omit 'std::' when not strictly needed,
other than for 'std::move' and 'std::forward'.  A third case is for
'reverse_iterator' and 'const_reverse_iterator' type aliases inside a
class definition, as the leading 'reverse_iterator' type alias hides
the 'std' version from the 'const_reverse_iterator' definition, and
subsequently fails to compile.  This patch restore the class definition
to a safely copy/pastable state.

An additional review indicated this convention has been applied correctly
for every othert potential occurrence in the library.
@tkoeppe tkoeppe requested a review from jwakely June 8, 2018 21:38
@tkoeppe tkoeppe added the after-motions Pull request is to be applied after the pending edits from WG21 straw polls have been applied. label Jun 8, 2018
@tkoeppe tkoeppe merged commit e0d78d3 into cplusplus:master Jun 27, 2018
@AlisdairM AlisdairM deleted the span_reverse_iterator branch November 14, 2023 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
after-motions Pull request is to be applied after the pending edits from WG21 straw polls have been applied.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants