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.

Reply via email to