Bug 7302 – std.conv.parse with radix doesn't work on ranges

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2012-01-17T03:41:00Z
Last change time
2012-01-20T08:00:07Z
Assigned to
nobody
Creator
nilsbossung

Comments

Comment #0 by nilsbossung — 2012-01-17T03:41:27Z
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 == '!'); }
Comment #1 by nilsbossung — 2012-01-18T18:28:18Z
Comment #2 by k.hara.pg — 2012-01-20T08:00:07Z