Thread overview | |||||
---|---|---|---|---|---|
|
April 05, 2009 [Issue 2801] New: std.typecons.Unique does not work | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2801 Summary: std.typecons.Unique does not work Product: D Version: 2.027 Platform: PC OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: jarrett.billingsley@gmail.com 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. -- |
May 26, 2011 [Issue 2801] std.typecons.Unique does not work | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2801 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich@gmail.com --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-05-26 12:55:25 PDT --- 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 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 02, 2012 [Issue 2801] std.typecons.Unique does not work | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2801 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation