Passing rvalues to functions expecting const ref
John Chapman
johnch_atms at hotmail.com
Sun Dec 23 10:32:46 PST 2012
On Sunday, 23 December 2012 at 12:08:47 UTC, Namespace wrote:
> As long as you use structs this should work, as you can see
> here: http://dpaste.dzfl.pl/03adf3d1
> But if you use classes, it does not work anymore. So I like it
> a lot, that it works with structs. :)
I don't think this will work after 2.061 is released. The
behaviour is changing to disallow struct literals as lvalues.
More information about the Digitalmars-d-learn
mailing list