On Thursday, 12 August 2021 at 10:10:17 UTC, rikki cattermole wrote:

On 12/08/2021 9:36 PM, Learner wrote:
It seems that there is no easy way to transition from a postblit to a copy constructor, no?

struct Foo {
        this(ref Foo other) {
                foreach(i, v; other.tupleof)
                        this.tupleof[i] = v;
        }

        @disable this(this);
}

This results to:

Generating an `inout` copy constructor for `struct A` failed, therefore instances of it are uncopyable

Reply via email to