const ref and rvalues

Torarin torarind at gmail.com
Wed Feb 15 19:20:43 PST 2012


2012/2/16 Trass3r <un at known.com>:
> I posted this question several times already and no answer yet,
> why is allowing temporaries bind to ref const params bad again?

To give you the option, I think. const ref doesn't bind to r-values,
while const auto ref does.

Torarin


More information about the Digitalmars-d mailing list