ref const(T) the same as C++'s const T&?

Peter Alexander peter.alexander.au at gmail.com
Tue Feb 15 15:15:38 PST 2011


On 15/02/11 10:47 PM, Lutger Blijdestijn wrote:
> For reference, here is a link to the thread discussing it: http://www.mail-
> archive.com/digitalmars-d at puremagic.com/msg44075.html
>
> If I understood that discussion correctly, 'auto ref' is supposed to solve
> the rvalue references problem but are not completely implemented yet.

Thanks Lutger.

 From the thread, it seems like the correct annotation would be 'auto 
ref const T', would it not?


More information about the Digitalmars-d mailing list