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: and...@metalanguage.com
        ReportedBy: tomeks...@gmail.com


--- Comment #0 from Tomasz SowiƄski <tomeks...@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: -------

Reply via email to