[Issue 18417] Make const and immutable postblit constructors illegal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 12 09:00:05 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18417
Cauterite <cauterite at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cauterite at gmail.com
--- Comment #1 from Cauterite <cauterite at gmail.com> ---
i'm wondering, after this is fixed, whether traits.hasElaborateCopyConstructor
should return false for immutable types?
currently it seems if a struct has a (mutable) postblit, there will be a
mutable __xpostblit that does the work, and an immutable __xpostblit that does
nothing.
hasElaborateCopyConstructor finds the second one and returns true.
--
More information about the Digitalmars-d-bugs
mailing list