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

Peter Alexander peter.alexander.au at gmail.com
Tue Feb 15 11:48:25 PST 2011


Do D const references work the same as C++'s?

i.e.
- Can they bind to rvalues?
- Do they extend the life of rvalues?

If they do, are there any differences from C++?

If they don't, how do I pass large structs into a function efficiently?

Thanks


More information about the Digitalmars-d mailing list