Struct copy constructor with inout
Alexandru Ermicioi
alexandru.ermicioi at gmail.com
Tue Nov 14 09:07:24 UTC 2023
On Tuesday, 14 November 2023 at 08:50:34 UTC, dhs wrote:
> In other words: why doesn't ss2=s2 fail here?
>
> Thanks,
> dhs
Seems like it isn't called at all, your copy constructor with
inout. Could be a bug.
My assumption is that default copy constructors are generated
alongside inout one, and then picked up for your initialization
instead of inout one.
Best regards,
Alexandru.
More information about the Digitalmars-d-learn
mailing list