std.conv.parse not accepting ByCodeUnitImpl

Jack Stouffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 24 06:15:07 PDT 2016


On Tuesday, 24 May 2016 at 05:01:39 UTC, ag0aep6g wrote:
> You're missing that `parse`'s parameter is `ref`. 
> `splitValue.front` is not an lvalue, so it can't be passed in a 
> ref parameter.
>
> This works:
> ----
>     auto f = splitValue.front;
>     parse!int(f);
> ----

Thanks. DMD desperately needs better error messages :/


More information about the Digitalmars-d-learn mailing list