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

[temp.type] What are "identical" values? #4600

Closed
frederick-vs-ja opened this issue May 10, 2021 · 2 comments
Closed

[temp.type] What are "identical" values? #4600

frederick-vs-ja opened this issue May 10, 2021 · 2 comments

Comments

@frederick-vs-ja
Copy link
Contributor

It seems that "the same" and "identical" have different meaning in [temp.type]/2, but the meaning of "identical" is unclear.
The intended meaning of "identical values" might be "identical value representations" (P1714R1), but "value representations" is not used when cooperated into P1907R1.

Should we use "value representations" here?

@zygoloid
Copy link
Member

It's deliberate that we do not use "value representations". There are environments in which the same number can be exactly represented as both a normalized and a non-normalized floating point value, with distinct value representations, and we did not intend to require that they be treated as different.

I agree that the exact rules are unclear, but I think that's not something that can be fixed editorially. (It's also hard to fix this non-editorially since the C++ core language currently has no notion of NaN values, normalization, and other similar things you would need to take into account to specify rules here.)

@frederick-vs-ja
Copy link
Contributor Author

It seems that C (at least for C23) has sufficient notions. Perhaps we can adopt C wording as DR(s).

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