Skip to content

[cmp.common] Remove unnecessary "std::" before strong_ordering #8148

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eisenwave
Copy link
Member

@eisenwave eisenwave commented Aug 14, 2025

Based on my search, this is the only occurrence of std:: before strong_ordering, partial_ordering, or weak_ordering in library wording.

Now thinking about it, we could perhaps make a check that generally disallows std:: except for certain whitelisted files (where there are too many violations to fix) and symbols (like std::move).

@jwakely
Copy link
Member

jwakely commented Aug 14, 2025

Since this is a note, I don't think it's a problem to qualify it. I don't really care about this either way.

@eisenwave
Copy link
Member Author

eisenwave commented Aug 14, 2025

I think it depends a bit on whether we have ambitions for the aforementioned checks. The reason I've paid attention to it in the first place is because I've accidentally used std::strong_ordering in a proposed declaration in one of my papers.

So maybe there's value in ensuring such issues don't sneak their way into the standard, on the off chance that LWG doesn't catch them.

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.

2 participants