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

Set fail and/or badbit exception masks on fstreams. #2637

Merged
merged 1 commit into from
Jul 24, 2020

Conversation

graydon
Copy link
Contributor

@graydon graydon commented Jul 24, 2020

This just sets badbit on ifstream exception masks, and failbit|badbit on ofstreams.

Failbit is not set on ifstreams because read operations typically signal completion by reading at-the-end and failing, setting both failbit and eof. Yet more magic and beauty of the iostreams library.

@MonsieurNicolas
Copy link
Contributor

r+ 6dab5db

@latobarita latobarita merged commit 558dfa8 into stellar:master Jul 24, 2020
@graydon graydon deleted the set-fstream-exception-masks branch January 28, 2021 01:43
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.

3 participants