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

expected: Allow move-only unexpected type #40

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

szaszm
Copy link
Contributor

@szaszm szaszm commented Dec 7, 2021

Fix concept checks in the assignment operators.

Using a move-only unexpected type resulted in a hard error when trying to instantiate expected, because the concept check was referring to the class template parameter E, not the assignment operator template parameter G, so in the context of operator=, it was not a dependent type.

fix concept checks in the assignment operators
@szaszm
Copy link
Contributor Author

szaszm commented Dec 7, 2021

#32 seems to be about this exact issue

@martinmoene martinmoene merged commit b5dfa99 into martinmoene:master Dec 7, 2021
martinmoene added a commit that referenced this pull request Dec 7, 2021
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.

None yet

2 participants