C++ Logo

sg16

Advanced search

Re: [isocpp-lib-ext] LEWG(I) Weekly review - P2549R0: Should the output of std::print to a terminal be synchronized with the underlying stream?

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Thu, 7 Apr 2022 23:38:31 +0300
On Thu, 7 Apr 2022 at 23:34, Herring, Davis via SG16
<sg16_at_[hidden]> wrote:
>
> > * To indicate your opinion on whether a change is needed
> > (reasoning is, of course, welcome):
> > * If you support the status quo (no change): please response
> > with "No Change"
> > * If you think a change is needed (synchronize the output with
> > the underlying steam): please response "+1"
>
> +1 -- defining writing to a stream via std::print as not writing to the stream is broken. Obviously flushing the buffer and _then_ writing directly is fine.

+1 (and a meta +1 on the above)

Received on 2022-04-07 20:38:43