Comment #0 by jarrett.billingsley — 2009-04-04T23:53:57Z
I can't get anything to compile, even the example code:
import std.typecons;
class A {}
void main()
{
Unique!(A) a = new A();
}
This just gives the error:
foo.d(12): Error: e2ir: cannot cast from foo.A to Unique!(A)
I've tried classes, structs, basic types etc. They all give the same error.
Comment #1 by andrej.mitrovich — 2011-05-26T12:55:25Z
This works now.
But why on earth do the ctor, dtor and release call writeln?
rdmd test.d:
Unique constructor with rvalue
Unique destructor of uniqtest.A