[Issue 3567] New: std.traits: Unqual doesn't handle arrays well

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 2 12:35:59 PST 2009


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: nobody at puremagic.com
        ReportedBy: lat7h at virginia.edu


--- Comment #0 from Luther Tychonievich <lat7h at 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: -------


More information about the Digitalmars-d-bugs mailing list