Range over a container r-value with disabled postblit
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sun Jan 14 22:07:33 UTC 2018
On 1/14/18 4:59 PM, Nordlöw wrote:
> On Sunday, 14 January 2018 at 21:57:37 UTC, Nordlöw wrote:
>> Note that __trait(isLvalue, this) cannot be used to detect whether
>> `this` is an l-value or an r-value, which I find strange.
>
> Shall be
>
> __traits(isRef, this)
That would be difficult because lval/rval is known on he callee side. --
Andrei
More information about the Digitalmars-d-learn
mailing list