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