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.
_______________________________________________ dmd-beta mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/dmd-beta
