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

Fix the definition of "writable to" #698

Closed
burblebee opened this issue Apr 14, 2016 · 0 comments
Closed

Fix the definition of "writable to" #698

burblebee opened this issue Apr 14, 2016 · 0 comments
Assignees

Comments

@burblebee
Copy link
Contributor

The definition of "writable" to is problematic as Richard explains below, but also the definition should be for "writable to", not just "writable", and it should be indexable.

e-mail from Richard:

It's defined in [iterator.requirements.general]/1: "All output iterators support the expression *i = o where o is a value of some type that is in the set of types that are writable to the particular iterator type of i."

That said, this wording seems fairly poor: it suggests that *i = o only has to work for one type in the set of "writable to" types, not for all such types, and is backwards: this is defining what "writable to" means, not adding a constraint on output iterators. Perhaps it would be clearer as:

"All output iterators i have a set of types that are writable to the iterator; for each such type T, the expression *i = o is valid where o is an expression of type T."

jensmaurer added a commit to jensmaurer/draft that referenced this issue Nov 22, 2016
@jensmaurer jensmaurer self-assigned this Nov 22, 2016
jensmaurer added a commit to jensmaurer/draft that referenced this issue Nov 23, 2016
jensmaurer added a commit to jensmaurer/draft that referenced this issue Nov 23, 2016
tkoeppe pushed a commit that referenced this issue Nov 23, 2016
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

2 participants