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);
On 01/02/2012 03:02 PM, Joshua Reusch wrote:
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,
On Mon, 02 Jan 2012 15:02:30 +0100, Joshua Reusch yos...@arkandos.de
wrote:
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);
Am 02.01.2012 22:13, schrieb Simen Kjærås:
On Mon, 02 Jan 2012 15:02:30 +0100, Joshua Reusch yos...@arkandos.de
wrote:
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: