D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7302 - std.conv.parse with radix doesn't work on ranges
Summary: std.conv.parse with radix doesn't work on ranges
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-17 03:41 UTC by Nils
Modified: 2012-01-20 08:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nils 2012-01-17 03:41:27 UTC
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 == '!');
}