how do I tell if something is lvalue?

Artur Skawina via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 1 10:28:05 PST 2016


On 01/31/16 23:11, Steven Schveighoffer via Digitalmars-d-learn wrote:
> Thanks! I was surprised this is not straightforward.

   enum isLvalue(alias A) = is(typeof((ref _){}(A)));

artur


More information about the Digitalmars-d-learn mailing list