bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatially move from $n (was: C++11 move semantics)


From: Frank Heckenbach
Subject: Re: Automatially move from $n (was: C++11 move semantics)
Date: Sat, 15 Sep 2018 20:19:54 +0200

Hans Åberg wrote:

> One idea might be to wrap the actions in inlines, and use return instead, as 
> C++ can recognize r-values in such situations.

I think we discussed this before, but this would only cover the case
"$$ = $N" (which is covered by the default action for N = 1 anyway).

More interesting are cases such as:

  $$ = make_unique <foo> ($1, $2, $3);

Regards,
Frank



reply via email to

[Prev in Thread] Current Thread [Next in Thread]