http://d.puremagic.com/issues/show_bug.cgi?id=9929

           Summary: Need 'this' when calling template with expanded tuple
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Andrej Mitrovic <[email protected]> 2013-04-13 
11:20:56 PDT ---
Found when implementing fix for Issue 7666:

import std.typecons;
import std.typetuple;

auto reverse(T)(T t)
    if (isTuple!T)
{
    return tuple(Reverse!(t.expand));  // fail

    auto x = t.expand;  // workaround
    return tuple(Reverse!(x));  // ok
}

void main()
{
    auto tup = tuple(1, "2");
    reverse(tup);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to