[Issue 5013] New: std.typecons.Tuple should have constructor for static arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 7 13:53:35 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5013
Summary: std.typecons.Tuple should have constructor for static
arrays
Product: D
Version: D1 & D2
Platform: Other
OS/Version: All
Status: ASSIGNED
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: andrei at metalanguage.com
ReportedBy: tomeksowi at gmail.com
--- Comment #0 from Tomasz Sowiński <tomeksowi at gmail.com> 2010-10-07 13:53:09 PDT ---
Should work:
int[2] ints;
Tuple!(int, int) t = ints;
This leaves the reverse conversion unimplementable. A way out can be:
Tuple!(int, int) t;
auto ints = to!(int[2])(t);
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list