rvalue references

Stewart Gordon via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 12 12:39:16 PDT 2015


On 09/06/2015 13:14, Namespace wrote:
<snip>
> What does this have to do with "garbage-collected language"?
> If I have a big struct, e.g.
> ----
> struct Matrix {
>      float[16] values = [...];
> }
> ----
> I always want to pass it by ref because a move or a copy would be too slow.

That seems to me a matter more of having something that behaves like C++ const T&, than of 
rvalue references as such.

Stewart.

-- 
My email address is valid but not my primary mailbox and not checked regularly.  Please 
keep replies on the 'group where everybody may benefit.


More information about the Digitalmars-d mailing list