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

E.16 not noexcept copy constructor #2135

Open
NihilityT opened this issue Sep 11, 2023 · 1 comment
Open

E.16 not noexcept copy constructor #2135

NihilityT opened this issue Sep 11, 2023 · 1 comment

Comments

@NihilityT
Copy link

These two sentences appear to contradict each other in the bottom Note of E.16:

ensure its copy constructor is not noexcept.

Try not to throw a type whose copy constructor is not noexcept.

According to proposal #1921, perhaps here is:

ensure its copy constructor is noexcept.

@iglesias
Copy link
Contributor

Although the wording in the logic might be convoluted, the two sentences agree on an exception type, or a type to throw, having a noexcept copy constructor.

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

No branches or pull requests

2 participants