C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Type-safe printf and auto

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Mon, 13 Mar 2023 11:06:09 +0000
On Mon, 13 Mar 2023 at 05:46, Thiago Macieira via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> On Sunday, 12 March 2023 22:11:38 PDT Zhihao Yuan via Std-Proposals wrote:
> > Sound feasible. It could be done by introducing
> > a special form _Deduce_format_string("foo {} {}", a, b)
>
> That would be a fair proposal to the C standard.
>
> The C++ standard would be uninterested in this proposal, though, because
> we
> *already* *have* it. It's just got a different function name, std::print().
>
>
I think we need a a FAQ entry explaining why WG21 will not entertain
changes to printf.

Received on 2023-03-13 11:06:25