C++ Logo

std-proposals

Advanced search

Re: Variadic function template equivalents for operator overloading

From: Thiago Macieira <thiago_at_[hidden]>
Date: Wed, 05 May 2021 21:29:55 -0700
On Tuesday, 4 May 2021 10:39:06 PDT Avi Kivity via Std-Proposals wrote:
> Since they adopted the proposal, it appears they agree that the
> function-call syntax is more natural than chaining.

auto dooms the chaining.

auto result1 = format(fmtstring, a, b, c);

auto result2 = format(fmtstring) << a << b << c;

What is the type of result2?

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

Received on 2021-05-05 23:29:59