https://issues.dlang.org/show_bug.cgi?id=17734

Steven Schveighoffer <schvei...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schvei...@yahoo.com

--- Comment #1 from Steven Schveighoffer <schvei...@yahoo.com> ---
This is because `this` is always accepted by reference, even for rvalues. This
is, in fact, the only place an rvalue will bind to a reference.

So this is as designed, at least for __traits(isRef). I don't think there's any
way to fix this, unless you templated each function and accepted `this` by
value when called from rvalues.

I recommend closing, this enhancement isn't going to happen.

--

Reply via email to