rvalue references
Timon Gehr via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jun 3 12:44:50 PDT 2015
On 06/03/2015 05:43 AM, bitwise wrote:
>>
>
> Why can't const ref accept rvalues?
>
> const being too restrictive doesn't seem like a real reason, because
> although its undesirable for some cases, doesn't mean it can't be useful
> in a _lot_ of other cases.
Its a real reason unless you endorse patchwork language design. This is
an obvious hole. There is absolutely no valid reason to solve only part
of the issue in a non-orthogonal fashion.
More information about the Digitalmars-d
mailing list