rvalues -> ref (yup... again!)

Timon Gehr timon.gehr at gmx.ch
Sat Mar 24 03:03:06 UTC 2018


On 24.03.2018 01:35, Manu wrote:
> Okay, let's read 'const ref' every time I say 'ref'. I thought that
> would be fairly safe to assume. Sorry!

Absolutely not. It makes absolutely no sense to restrict rvalue 
references to const objects. (Recall that const is transitive and 
actually prevents mutation. This is not C++.)


More information about the Digitalmars-d mailing list