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

[expr.rel] Simplify pointer comparison wording #3590

Closed
sdkrystian opened this issue Dec 28, 2019 · 1 comment
Closed

[expr.rel] Simplify pointer comparison wording #3590

sdkrystian opened this issue Dec 28, 2019 · 1 comment

Comments

@sdkrystian
Copy link
Contributor

sdkrystian commented Dec 28, 2019

[expr.rel] p4 sub 3 says:

Otherwise, neither pointer is required to compare greater than the other.

This should just outright say that the result is unspecified.

@jensmaurer
Copy link
Member

This bulleted list defines a partial order; "unspecified" would be a category error in that realm. We make specific C++ comparison operators have unspecified result in the next paragraph if the partial order says "no ordering defined here".

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