C++ Logo


Advanced search

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

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sun, 12 Mar 2023 22:46:35 -0700
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().

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-03-13 05:46:36