Skip to content

expected: Allow move-only unexpected type#40

Merged
martinmoene merged 1 commit into
nonstd-lite:masterfrom
szaszm:master
Dec 7, 2021
Merged

expected: Allow move-only unexpected type#40
martinmoene merged 1 commit into
nonstd-lite:masterfrom
szaszm:master

Conversation

@szaszm

@szaszm szaszm commented Dec 7, 2021

Copy link
Copy Markdown
Contributor

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

szaszm commented Dec 7, 2021

Copy link
Copy Markdown
Contributor Author

#32 seems to be about this exact issue

@martinmoene martinmoene merged commit b5dfa99 into nonstd-lite: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.

2 participants