Explicitly propagate the status of Flush().
Before the change, an implicit Flush() will be triggered in the destructor of the input stream. However, the return code of Flush() is not discarded. This change makes sure when Flush() fails, we will return false.
Showing
Please
register
or
sign in
to comment