[Issue 17734] __traits(isRef) cannot currently be used to distinguish l-value from r-value passing of `this`

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Aug 8 13:24:41 PDT 2017


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

--- Comment #4 from Andrei Alexandrescu <andrei at erdani.com> ---
Don't use methods. Instead, use regular functions with UFCS and overload on ref
and non-ref to distinguish rvalues from rvalues.

--


More information about the Digitalmars-d-bugs mailing list