Disabled and enabled copy constructors and .dup

Per Nordlöw per.nordlow at gmail.com
Tue Oct 24 11:37:42 UTC 2017


On Tuesday, 24 October 2017 at 07:56:34 UTC, Biotronic wrote:
> struct SuppressPostblit(T)
> {
>     // Disguise T as a humble array.
>     private ubyte[T.sizeof] _payload;
> ...

A bit too hackish for my taste, but does the job still.

Thanks.


More information about the Digitalmars-d-learn mailing list