C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Proposal: Making The auto Keyword Optional in Trailing Return Types

From: Thiago Macieira <thiago_at_[hidden]>
Date: Tue, 18 Mar 2025 22:40:34 -0700
On Tuesday, 18 March 2025 18:56:34 Pacific Daylight Time Fady al Dhaim via Std-
Proposals wrote:
> This change is *purely syntactic*—it does not affect semantics.

Correct, syntax is the issue.

Please make an analysis of whether the omission of the auto keyword would lead
to ambiguity parsing function declarations or create other syntactical
problems.

We do have a case of no-return-type already: constructors and destructors.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2025-03-19 05:40:36