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

[array.zero] paragraph 2 has confusing mathmatical notation using C++… #2312

Closed
wants to merge 1 commit into from

Conversation

EzoeRyou
Copy link
Contributor

… syntax.

[array.zero] paragraph 2 says

In the case that N == 0, begin() == end() == unique value.

The usage of double equals indicates this is a C++ expression.

But in C++, "a == b == c" means "(a==b) == c" which is "bool value == c".
Besides, it doesn't say anything about the result of that expression at all.

I think the intent of this wording is that, the return value of begin() and end() are the same unique value.

… syntax.

[array.zero] paragraph 2 says

> In the case that N == 0, begin() == end() == unique value.

The usage of double equals indicates this is a C++ expression.

But in C++, "a == b == c" means "(a==b) == c" which is "bool value == c".
Besides, it doesn't say anything about the result of that expression at all.

I think the intent of this wording is that, the return value of begin() and end() are the same unique value.
@jwakely
Copy link
Member

jwakely commented Aug 30, 2018

This wording is being changed anyway for https://wg21.link/lwg2157

@EzoeRyou
Copy link
Contributor Author

Oh I didn't know that.

@EzoeRyou EzoeRyou closed this Aug 30, 2018
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.

None yet

2 participants