[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 12:28:57 UTC 2018


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

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|std.traits: Unqual doesn't  |std.traits: Unqual strips
                   |handle arrays well          |qualifiers on structs with
                   |                            |references that would break
                   |                            |const/immutable.

--- Comment #6 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Note, the bug here in FeepingCreature's case is that it strips more than it
should. It is supposed to be safe to use Unqual.

So the expectation that Unqual should remove all mutability modifiers is
incorrect.

I'm changing the title accordingly. Perhaps we should actually close this bug
and open another, as the whole issue has really been flipped around?

--


More information about the Digitalmars-d-bugs mailing list