On 17/10/2019 4:29 AM, drug wrote:
struct Foo
{
     this(ref const(Foo) other) {}
     this(const(Foo) other) {}
}

I'm trying to update dmd version and starting from 2.086 my code doesn't compile due to the error above. What is the reason of that?

Copy constructors were added (sort of like postblit).

https://dlang.org/spec/struct.html#struct-copy-constructor

Is it temporarily situation?

No.

Reply via email to