C++ Logo


Advanced search

Subject: Re: [std-proposals] Variadic function template equivalents for operator overloading
From: Thiago Macieira (thiago_at_[hidden])
Date: 2021-05-05 23:29:55

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

STD-PROPOSALS list run by std-proposals-owner@lists.isocpp.org

Standard Proposals Archives on Google Groups