Skip to content

[stoptoken.concepts] Remove redundant 'swappable<Token>' clause from 'stoppable_token' concept #7299

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

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

lewissbaker
Copy link
Contributor

The stoppable_token<Token> concept requires both copyable<Token> to be satisfied and swappable<Token> to be satisfied.

However, the copyable<Token> requirement already subsumes movable<Token>, which subsumes swappable<Token>.

Therefore the requirement for swappable<Token> can be removed from the stoppable_token concept definition with no semantic change.

…'stoppable_token' concept

The `stoppable_token<Token>` concept requires both `copyable<Token>` to be satisfied and `swappable<Token>` to be satisfied.

However, the `copyable<Token>` requirement already subsumes `movable<Token>`, which subsumes `swappable<Token>`.

Therefore the requirement for `swappable<Token>` can be removed from the `stoppable_token` concept definition with no semantic change.
@jensmaurer
Copy link
Member

@jwakely , what do you think?

@jensmaurer jensmaurer merged commit 7c6322a into cplusplus:main Oct 12, 2024
2 checks passed
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.

4 participants