[Issue 15800] std.conv.to!int does not work with ranges of char or wchar
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed May 25 12:01:09 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=15800
Jack Stouffer <jack at jackstouffer.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jack at jackstouffer.com
--- Comment #1 from Jack Stouffer <jack at jackstouffer.com> ---
This issue doesn't just apply to ranges of char or wchar. Consider
import std.utf;
import std.conv;
void main()
{
auto res = "1234567".byDchar.to!int; // fails
auto res2 = "1234567".byDchar;
auto i = res2.parse!int; // works
}
--
More information about the Digitalmars-d-bugs
mailing list