isRvalue trait

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 10 04:58:52 PDT 2016


On Monday, 10 October 2016 at 11:51:09 UTC, Nordlöw wrote:
> Found it:
>
> http://forum.dlang.org/post/n8m8bh$2vgc$1@digitalmars.com
> https://issues.dlang.org/show_bug.cgi?id=15634

Ok, so I added `isLvalue` and `isRvalue` to

https://github.com/nordlow/phobos-next/blob/master/src/moval.d

Now the next follow-up question becomes how to use it to 
restrict/overload my definition of `movedToRvalue()` since 
`isLvalue` takes an alias as argument and `movedToRvalue` takes a 
reference to an instance. How to solve this?


More information about the Digitalmars-d-learn mailing list