-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Implement LWG-3571 and LWG-3570: flush_emit
set badbit
if the emit
call fails
#2418
Conversation
tests/std/tests/P0753R2_manipulators_for_cpp_synchronized_buffered_ostream/test.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Michael Schellenberger Costa <[email protected]>
flush_emit
set badbit
if the emit
call failsflush_emit
set badbit
if the emit
call fails
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Matt Stephanson <[email protected]>
Co-authored-by: Matt Stephanson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
tests/std/tests/P0753R2_manipulators_for_cpp_synchronized_buffered_ostream/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/P0753R2_manipulators_for_cpp_synchronized_buffered_ostream/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/P0753R2_manipulators_for_cpp_synchronized_buffered_ostream/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/P0753R2_manipulators_for_cpp_synchronized_buffered_ostream/test.cpp
Outdated
Show resolved
Hide resolved
Thanks, this looks solid! The only things I noticed were stylistic nitpicks, so I went ahead and pushed a merge with |
if (!_Ok) { | ||
_State |= ios_base::badbit; | ||
} else { | ||
_TRY_IO_BEGIN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
God I really don't like these, it's pre-existing (and changing it would be ... a project) so don't consider this a change request, but maybe we should open an issue.
tests/std/tests/P0753R2_manipulators_for_cpp_synchronized_buffered_ostream/test.cpp
Outdated
Show resolved
Hide resolved
Thanks - I approve of the ternary-to- |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for syncing the implementation with the Standard's stream of LWG issues! 😹 🚀 🎉 |
Fixes #2396
Fixes #2395