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

Mark scope guard dtors as throwing when calling basic_ios::exceptions() #15

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

Lastique
Copy link
Member

@Lastique Lastique commented Oct 1, 2023

basic_ios::exceptions() may immediately throw an exception, if the stream has an error condition that matches the newly set exception mask. Since it is called in destructors of some scope guards, these destructors have to be explicitly marked as throwing to avoid terminating the process.

basic_ios::exceptions() may immediately throw an exception, if the stream
has an error condition that matches the newly set exception mask. Since
it is called in destructors of some scope guards, these destructors have
to be explicitly marked as throwing to avoid terminating the process.
@glenfe glenfe merged commit 342e4c6 into boostorg:develop Oct 2, 2023
11 of 24 checks passed
@Lastique Lastique deleted the feature/fix_dtor_noexcept branch October 2, 2023 21:18
@Lastique
Copy link
Member Author

Lastique commented Oct 2, 2023

@glenfe Please, remember to merge to master. My previous PR (#14) was merged more than a year ago and still not in master.

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