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

23.2.3[sequence.reqmts]/5 is redundant with Table 96 #461

Closed
cubbimew opened this issue Mar 20, 2015 · 0 comments
Closed

23.2.3[sequence.reqmts]/5 is redundant with Table 96 #461

cubbimew opened this issue Mar 20, 2015 · 0 comments

Comments

@cubbimew
Copy link
Contributor

23.2.3[sequence.reqmts]/5 says "iterator and const_iterator types for sequence containers shall be at least of the forward iterator category", but Table 96 up in 23.2.1[container.requirements.general] already said "any iterator category that meets the forward iterator requirements" for both X::iterator and X::const_iterator, for all containers. Shouldn't it be said only once?

The redundancy was introduced in 2008, when n2776 was applied to the working draft, changing general container requirements from input iterators to forward iterators (then "ForwardIterator concept")

jensmaurer added a commit to jensmaurer/draft that referenced this issue Nov 23, 2016
for sequence containers.

Any container is nowadays required to have forward iterators;
see the table entries for X::iterator and X::const_iterator in
[container.requirements.general].

Fixes cplusplus#461.
tkoeppe pushed a commit that referenced this issue Nov 26, 2016
… sequence containers (#1107)

Any container is nowadays required to have forward iterators;
see the table entries for X::iterator and X::const_iterator in
[container.requirements.general].

Fixes #461.
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

No branches or pull requests

1 participant