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

           Summary: std.traits: Unqual doesn't handle arrays well
           Product: D
           Version: 2.036
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: la...@virginia.edu


--- Comment #0 from Luther Tychonievich <la...@virginia.edu> 2009-12-02 
12:35:58 PST ---
Phobos' traits.d's Unqual! template (needed for several of its other templates)
does not handle arrays well:

writeln(Unqual!(const(int[])).stringof); // writes const(int)[] not int[]

Adding the following near line 1188 of traits.d solves this problem:

template Unqual(T : U[], U) { alias U[] Unqual; }

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

Reply via email to