[Issue 20965] Implicitly generated postblit overrides disabled copy ctor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 25 09:40:11 UTC 2020


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

--- Comment #3 from Stanislav Blinov <stanislav.blinov at gmail.com> ---
(In reply to RazvanN from comment #1)

> @disable this(this);
> @disable this(ref typeof(this));
> 
> You don't have to reflect on any code this way.

If I don't want to further infest the codebase with postblits, I have to.

> The rule of thumb is: if you want to make sure that a posblit does not get
> in your way you must defensively disable the postblit and then the copy
> constructor will have priority.

Postblits will never go away then, until they stop compiling.

--


More information about the Digitalmars-d-bugs mailing list