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

           Summary: to!string should work for various pointer types
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: andrej.mitrov...@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2011-06-14 
15:34:46 PDT ---
import std.conv;

void main()
{
    char*  cstr = "bla".dup.ptr;
    wchar* wstr = "bla"w.dup.ptr;
    dchar* dstr = "bla"d.dup.ptr;

    to!string(cstr);    // ok
    to!string(wstr);    // fail
    to!string(dstr);    // fail
}

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

Reply via email to