A while back dmd stopped allowing rvalues as ref function arguments. I entirely understand why it was done, but the same restriction applies to the ref const function parameters. This causes a lot of pain and at the moment makes me use pass-by-value parameters(most notably when using structs). C++ doesn't have any problem with const ref and rvalues. Can we please restore this behavior for const ref?
- R-values and const ref Eldar Insafutdinov
- Re: R-values and const ref bearophile
- Re: R-values and const ref Steven Schveighoffer
- Re: R-values and const ref Eldar Insafutdinov
- Re: R-values and const ref Steven Schveighoffer
- Re: R-values and const ref dsimcha
- Re: R-values and const ref Andrei Alexandrescu
- Re: R-values and const ref Max Samukha
- Re: R-values and const ref Andrei Alexandrescu
- Re: R-values and const ref Steven Schveighoffer
- Re: R-values and const ref dsimcha