Reference value of structs not optimized or inlined?
Jarrett Billingsley
jarrett.billingsley at gmail.com
Fri Aug 28 11:52:55 PDT 2009
On Thu, Aug 27, 2009 at 8:17 PM, Walter
Bright<newshound1 at digitalmars.com> wrote:
> Jeremie Pelletier wrote:
>>
>> Isn't there a way to implement RVO to work on parameters (PVO?) too
>> if the storage is const?
>
> No, and it doesn't work for C++ either. Consider:
>
You're addressing the 'const' issue, but you haven't addressed the
OP's issue: that 'ref', for whatever reason, prevents inlining. Const
aside, why is this so?
More information about the Digitalmars-d
mailing list