struct Foo may not define both a rvalue constructor and a copy constructor

drug drug2004 at bk.ru
Wed Oct 16 15:29:31 UTC 2019


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? Is it 
temporarily situation?


More information about the Digitalmars-d-learn mailing list