Template constraints: opCmp and opUnary!"++"

Timon Gehr timon.gehr at gmx.ch
Fri Dec 20 09:18:00 PST 2013


On 12/20/2013 05:40 PM, monarch_dodra wrote:
>
> That's normal, because "T.init" is not an lvalue.
>
> If you need an lvalue, we have `std.traits.lvalueOf!T` which you
> can use.

is(typeof((T v){ /+ use v +/ }))

I think this is a lot cleaner.


More information about the Digitalmars-d-learn mailing list