Struct copy constructor with inout
dhs
dhs at email.com
Tue Nov 14 09:54:13 UTC 2023
On Tuesday, 14 November 2023 at 09:07:24 UTC, Alexandru Ermicioi
wrote:
>
> 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.
When I run test() it outputs the string "copy", so I am not sure
why you're saying this.
More information about the Digitalmars-d-learn
mailing list