'Auto can only be used for template function arguments' what?

Artur Skawina art.08.09 at gmail.com
Wed Jun 27 09:13:24 PDT 2012


On 06/27/12 18:04, Artur Skawina wrote:
> On 06/27/12 17:38, Jonathan M Davis wrote:
>> On Wednesday, June 27, 2012 13:33:10 Timon Gehr wrote:
>> saying that it's being passed by value except that you'd like the compiler to 
>> avoid the copy if it can, I don't see why it's restrictive at all to make 
> 
> That's not what auto-ref does. We already had this discussion. auto-ref lets

To clarify - /avoiding a copy/ is not the only, or even the main, use of
this feature. Copy avoidance mostly matters for structs, and these cases
should eventually be handled in a better way - but even when that will be
done, auto-ref will still remain useful.

artur



More information about the Digitalmars-d mailing list