[Issue 3567] std.traits: Unqual strips qualifiers on structs with references that would break const/immutable.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 12 15:11:44 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=3567

--- Comment #9 from Steven Schveighoffer <schveiguy at yahoo.com> ---
I think a trait "ForceUnqual" may be needed in some cases, but "Unqual" I have
always expected to behave the way it does (except in the case of structs
containing references, for which it should not strip anything).

Man, it would be nice to have a tail-modifier in D...

--


More information about the Digitalmars-d-bugs mailing list