std.conv.parse not accepting ByCodeUnitImpl

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 25 08:34:45 PDT 2016


On 5/25/16 11:15 AM, Jack Stouffer wrote:
> On Tuesday, 24 May 2016 at 05:01:39 UTC, ag0aep6g wrote:
>> You're missing that `parse`'s parameter is `ref`.
>
> Do you what the rationale behind this is? I just removed the ref from
> the floating point from input range overload and it works fine for strings.

parse consumes data from the string as it goes.

If you want to leave the data there, use to instead.

-Steve


More information about the Digitalmars-d-learn mailing list