On 11/22/2016 05:06 AM, Nordlöw wrote:
On Monday, 21 November 2016 at 20:04:51 UTC, Ali Çehreli wrote:mixin template RvalueRef() // <-- DOES NOT TAKE A PARAMETER ANY MORE { alias T = typeof(this); static assert (is(T == struct));@nogc @safe ref const(T) byRef() const pure nothrow returnWhy do you need to qualify `byRef` as pure nothrow when it's a template?
I don't think you need those. I didn't pay attention to any other part of the code other than moving that parameter inside. :)
Ali