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

C++ exceptions should have a noexcept copy constructor and assignment operator #2358

Closed
bernardnormier opened this issue Jun 27, 2024 · 0 comments · Fixed by #3238
Closed
Assignees
Labels
Milestone

Comments

@bernardnormier
Copy link
Member

Related to: zeroc-ice/ice-demos#146

All C++ local exceptions should follow this rule.

For generated user exceptions with user-specified fields, it should be true when the fields are noexcept copy-constructible and assignable. Unfortunately we can't provide this guarantee for user exceptions with fields that aren't noexcept copy-constructible (like std::string) without breaking source compatibility. We could try to disable this diagnostics for such generated user exceptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant