Passing rvalues to functions expecting const ref

Namespace rswhite4 at googlemail.com
Sun Dec 23 04:08:46 PST 2012


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. :)


More information about the Digitalmars-d-learn mailing list