getting mutable type from T

Lutger lutger.blijdestijn at gmail.com
Tue Mar 24 07:47:46 PDT 2009


Jarrett Billingsley wrote:
..
> std.traits.Mutable!(T).

Ah thanks! Too obvious.

In case somebody would like to know:

    static if (is(T U == const(U)))
	alias U Mutable;
    else static if (is(T U == immutable(U)))
	alias U Mutable;




More information about the Digitalmars-d-learn mailing list