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
Weird sentence in [ostream] #3333
Comments
FWIW, similar passage in [istream] ends in a more sensible "otherwise it does not throw anything and proceeds as if the called function had returned a failure indication." |
Editorial meeting: Assign to @jwakely. |
The wording seems very similar to Issues 27-406 and 27-504 in N0827. I don't know when or why the wording in [istream] and [ostream] diverged. I think we should improve "sets It seems like an improvement to make both places say "proceeds as if the called function had returned a failure indication." |
Also fix grammar in [istream], [istream.extractors] and [ostream.inserters] to refer to "*the* error state", and use "is set in" when talking about a bitmask element being set in a value of a bitmask type. Fixes cplusplus#3333
Also fix grammar in [istream], [istream.extractors] and [ostream.inserters] to refer to "*the* error state", and use "is set in" when talking about a bitmask element being set in a value of a bitmask type. Fixes cplusplus#3333
Also fix grammar in [istream], [istream.extractors] and [ostream.inserters] to refer to "*the* error state", and use "is set in" when talking about a bitmask element being set in a value of a bitmask type. Fixes #3333
Quoting from [ostream]:
"If one of these called functions throws an exception, then unless
explicitly noted otherwise the output function sets badbit in error
state. If badbit is on in exceptions(), the output function rethrows
the exception without completing its actions, otherwise it does not
throw anything and treat as an error. "
"and treat as an error" seems wrong; should it be "and treats it as
an error"? If that is the case, I'd say that it adds nothing useful and
should be removed.
The text was updated successfully, but these errors were encountered: