std.conv.parse not accepting ByCodeUnitImpl
Jack Stouffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 25 11:23:45 PDT 2016
On Wednesday, 25 May 2016 at 16:53:30 UTC, Steven Schveighoffer
wrote:
> to should work wherever parse works (in fact, whenever you call
> to!someType(someString), I believe it just forwards to parse).
This is not the case; to doesn't work with ranges:
auto str = "1234567".byCodeUnit;
auto result = parse!int(str);
auto result2 = to!int(str); // doesn't compile
More information about the Digitalmars-d-learn
mailing list