[dmd-beta] D 2.059 beta 4
Walter Bright
walter at digitalmars.com
Mon Apr 9 17:24:17 PDT 2012
On 4/9/2012 4:25 PM, Jonathan M Davis wrote:
> All in all, this is way too messy. Bearophile's suggestion of using const auto
> ref will probably work though as long as you template the function (since auto
> ref doesn't currently work with non-templated functions). - Jonathan M Davis
Templating a struct opEquals doesn't work because templates can't be installed
in the TypeInfo.
I'm beginning to think that disallowing struct literals to be lvalues was a bad
idea.
More information about the dmd-beta
mailing list