The Status of Const
dsimcha
dsimcha at yahoo.com
Thu Aug 12 17:44:55 PDT 2010
== Quote from bearophile (bearophileHUGS at lycos.com)'s article
> Jonathan M Davis:
> > The lack of a mutable qualifier seems like it could be
> > another big problem,
> I was thinking about a Deconst!() template...
> Bye,
> bearophile
Are you sure std.traits.Unqual doesn't do what you want? It shallowly removes
const/immutable/shared. For example:
static assert(is(Unqual!(immutable(char[])) == immutable(char)[])));
static assert(is(Unqual!(immutable(int) == int));
More information about the Digitalmars-d
mailing list