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

Fix noexcept destructor in C++ API #481

Merged
merged 1 commit into from
Feb 14, 2024
Merged

Fix noexcept destructor in C++ API #481

merged 1 commit into from
Feb 14, 2024

Conversation

rkaminsk
Copy link
Member

There are some constructors in the C++ API that finalize constructions where exceptions are possible. This PR adds explicit close methods that can be called before destruction to ensure the destructors do not throw. However, it is still the responsibility of the user to ensure that there are no simultaneous exceptions.

@rkaminsk rkaminsk linked an issue Feb 13, 2024 that may be closed by this pull request
@rkaminsk rkaminsk force-pushed the fix/noexcept-destructor branch from bd80209 to 0eba416 Compare February 13, 2024 08:42
@rkaminsk rkaminsk added the bug label Feb 13, 2024
@rkaminsk rkaminsk added this to the v5.7.0 milestone Feb 13, 2024
@rkaminsk rkaminsk self-assigned this Feb 13, 2024
@rkaminsk rkaminsk merged commit 7748f42 into wip Feb 14, 2024
4 checks passed
@rkaminsk rkaminsk deleted the fix/noexcept-destructor branch February 14, 2024 13:44
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 this pull request may close these issues.

C++ API throws exception from destructor that cannot be caught
1 participant