On 2012-10-04 16:09, Jesse Phillips wrote:

IIRC, inout must be applied to the return type too, and it only works in
templates.

What? The whole point of "inout" is to NOT have to use templates since the compiler will generate the same code anyway.

http://dlang.org/function.html#inout-functions

I also tried to make it a template but I get the same result. Actually in my original code it's a template.

--
/Jacob Carlborg

Reply via email to