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

Delete ForbidsComposingWith mixin #227

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

chiphogg
Copy link
Contributor

@chiphogg chiphogg commented Mar 9, 2024

It causes problems with Apple Clang version 9, apparently. I think this
compiler technically falls outside of our support window. However, an
actual user is having issues with it, and I think ForbidsComposingWith
is adding only very marginal value anyway. I tried deleting it and the
error messages became a couple of lines shorter, although perhaps less
direct (no more reference to "explicitly deleted").

Amusingly, I'm keeping the unit test for it around, because it's one of
those unfortunate "uncomment to test" deals, and the tests will still
pass. (We'll get compiler errors for doing unsupported operations.)

Fixes #226.

It causes problems with Apple Clang version 9, apparently.  I think this
compiler technically falls outside of our support window.  However, an
actual user is having issues with it, and I think `ForbidsComposingWith`
is adding only very marginal value anyway.  I tried deleting it and the
error messages became a couple of lines shorter, although perhaps less
direct (no more reference to "explicitly deleted").

Amusingly, I'm keeping the unit test for it around, because it's one of
those unfortunate "uncomment to test" deals, and the tests _will_ still
pass.  (We'll get compiler errors for doing unsupported operations.)
@chiphogg chiphogg added the release notes: 🐛 lib (bugfix) PR fixing a defect in the library code label Mar 9, 2024
@chiphogg chiphogg marked this pull request as ready for review March 9, 2024 21:15
@chiphogg chiphogg requested a review from geoffviola March 9, 2024 21:27
Copy link
Contributor

@geoffviola geoffviola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workaround seems reasonable.

It also looks like a compiler bug to me. I'm surprised to see this bug in a compiler released in 2019. If we are more confident that it's the compiler's fault and users can upgrade, we can add this code back in.

@chiphogg chiphogg merged commit ffea274 into main Mar 11, 2024
10 checks passed
@chiphogg chiphogg deleted the chiphogg/not-forbidden-but-not-permitted#226 branch March 11, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: 🐛 lib (bugfix) PR fixing a defect in the library code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redefinition of 'operator*' and 'operator/' errors
2 participants