On Sunday, 30 September 2018 at 19:54:07 UTC, ikod wrote:
On Thursday, 20 September 2018 at 14:57:42 UTC, Atila Neves
wrote:
If you've never heard of automem before, I wrote it to have
C++-style smart pointers in D that I could use in @nogc code:
http://code.dlang.org/packages/automem
Sorry for asking here.
Shouldn't this code work?
import automem;
struct X {
int i;
}
struct Y {
RefCounted!X x; // fails
//X x; // ok
}
void main()
{
Y y1;
Y y2;
y2 = y1;
}
https://run.dlang.io/is/k2qWhm
This really should have been a github issue, but thanks for
posting this anyway. I just fixed it.