rvalue references template ?

Joshua Reusch yoschi at arkandos.de
Mon Jan 2 06:02:30 PST 2012

Is it possible to create a template turning any value into a lvalue?
This would be helpful if a function expects a reference but you dont 
need the result of the change:

///decode(S)(in S str, ref size_t index);
auto c = std.utf.decode(some_string, lval!0);

More information about the Digitalmars-d-learn mailing list