== Quote from bearophile (bearophileh...@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));