Binding rvalues to const ref in D

Ethan Watson via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 20 04:07:51 PDT 2016


On Thursday, 20 October 2016 at 10:36:16 UTC, Manu wrote:
> DIP25 introduced return ref to address this issue. Just 
> annotate it correctly?

I mean, it'll work, but it's not the most secure method to rely 
on the programmer remembering to do it.


More information about the Digitalmars-d mailing list