Thread overview
[Issue 7302] New: std.conv.parse with radix doesn't work on ranges
Jan 17, 2012
Nils
Jan 19, 2012
Nils
Jan 20, 2012
Kenji Hara
January 17, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7302

           Summary: std.conv.parse with radix doesn't work on ranges
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: mailme+d@nilsb.dyndns.org


--- Comment #0 from Nils <mailme+d@nilsb.dyndns.org> 2012-01-17 03:41:27 PST ---
import std.range;
import std.conv;
void main() {
    auto r = cycle("2A!");
    auto u = std.conv.parse!uint(r, 16);
        // "does not match any function template declaration"
    assert(u == 42);
    assert(r.front == '!');
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 19, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7302



--- Comment #1 from Nils <mailme+d@nilsb.dyndns.org> 2012-01-18 18:28:18 PST ---
https://github.com/D-Programming-Language/phobos/pull/396

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7302


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2012-01-20 08:00:07 PST ---
https://github.com/D-Programming-Language/phobos/commit/5a21673eac145a182a4a68d86d8fc4c0e9e2f489

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