Boost logo

Proto :

Subject: Re: [proto] Holding children by copy or reference
From: Bart Janssens (bart_at_[hidden])
Date: 2013-10-01 03:05:10

On Tue, Oct 1, 2013 at 12:59 AM, Mathias Gaunard
<mathias.gaunard_at_[hidden]> wrote:
> To clarify, in terms of performance, from best-to-worst:
> 1) everything by reference: no problem with performance (but problematic
> dangling references in some scenarios)
> 2) everything by value: no CSE or other optimizations
> 3) nodes by value, terminals by reference: no CSE or other optimizations +
> loads when accessing the terminals

Just out of interest: would holding the a*b temporary node by rvalue
reference be possible and would it be of any help?



Proto list run by eric at