C++ Logo

liaison

Advanced search

Re: [wg14/wg21 liaison] (SC22WG14.19237) grammar incompatibilities with lambdas

From: Jens Maurer <Jens.Maurer_at_[hidden]>
Date: Mon, 12 Apr 2021 22:40:42 +0200
On 12/04/2021 10.32, Jens Gustedt via Liaison wrote:
> No, I don't think we should. That would just complexify the
> grammar. The main difficulty of C++' grammar with `< >` template
> brackets is actually that `>>` is already the right-shift token.

That's a minor annoyance compared to the troubles with > being
ambiguous between "greater-than" and "end-of-argument-list",
for a template that takes a value.

template<int V>
struct S;

S< 1>some_constant > something;

Jens

Received on 2021-04-12 15:40:50