Passing rvalues to functions expecting const ref
Minas Mina
minas_mina1990 at hotmail.co.uk
Sun Dec 23 10:18:50 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. :)
Thank you. I had forgotten to supply the constructor to the
struct :/
More information about the Digitalmars-d-learn
mailing list