copy-ctor's
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Mon May 27 05:15:04 UTC 2019
On Monday, 27 May 2019 at 04:52:14 UTC, Manu wrote:
> I don't really think there's a problem here, just @disable the
> default copy/postblit/destructor in the presence of a union,
> and also make any access to a member of a union un- at safe. The
> rest will fall out naturally.
Depends on how strict you want to be. In terms of correctness
you shouldn't allow anything with a destructor in a union in the
first place.
More information about the Digitalmars-d
mailing list