how do I tell if something is lvalue?
Meta via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jan 31 18:25:52 PST 2016
On Monday, 1 February 2016 at 00:20:00 UTC, Ali Çehreli wrote:
> On 01/31/2016 01:48 PM, Meta wrote:
>
>> This seems to do the trick, although I haven't extensively
>> tested it.
>
>
> There is hasLvalueElements() as well. Its implementation my be
> similar or give other ideas:
>
>
> https://dlang.org/phobos/std_range_primitives.html#hasLvalueElements
>
> Ali
Unfortunately it's almost exactly the same as what I did, except
for front, back, etc. Looks like there is currently no easier way.
More information about the Digitalmars-d-learn
mailing list