Broken examples
Imperatorn
johan_forsberg_86 at hotmail.com
Fri Mar 5 22:03:23 UTC 2021
On Friday, 5 March 2021 at 22:01:37 UTC, Imperatorn wrote:
> Basically none of the examples on here compile:
> https://dlang.org/library/std/conv/parse.html
>
> Any idea why?
Output:
onlineapp.d(10): Error: template `std.conv.parse` cannot deduce
function from argument types `!(bool, string,
cast(Flag)false)(string)`, candidates are:
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2183):
`parse(Target, Source)(ref Source source)`
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2280):
`parse(Target, Source)(ref Source s)`
with `Target = bool,
Source = string`
must satisfy the following constraint:
` isIntegral!Target`
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2651):
`parse(Target, Source)(ref Source source, uint radix)`
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2793):
`parse(Target, Source)(ref Source s)`
with `Target = bool,
Source = string`
must satisfy the following constraint:
` is(Target == enum)`
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2883):
`parse(Target, Source)(ref Source source)`
with `Target = bool,
Source = string`
must satisfy the following constraint:
` isFloatingPoint!Target`
onlineapp.d(10): ... (6 more, -v to show) ...
onlineapp.d(13): Error: template `std.conv.parse` cannot deduce
function from argument types `!(bool, string,
cast(Flag)true)(string)`, candidates are:
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2183):
`parse(Target, Source)(ref Source source)`
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2280):
`parse(Target, Source)(ref Source s)`
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2651):
`parse(Target, Source)(ref Source source, uint radix)`
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2793):
`parse(Target, Source)(ref Source s)`
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2883):
`parse(Target, Source)(ref Source source)`
onlineapp.d(13): ... (6 more, -v to show) ...
onlineapp.d(16): Error: template `std.conv.parse` cannot deduce
function from argument types `!(bool, string,
cast(Flag)true)(string)`, candidates are:
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2183):
`parse(Target, Source)(ref Source source)`
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2280):
`parse(Target, Source)(ref Source s)`
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2651):
`parse(Target, Source)(ref Source source, uint radix)`
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2793):
`parse(Target, Source)(ref Source s)`
/dlang/dmd/linux/bin64/../../src/phobos/std/conv.d(2883):
`parse(Target, Source)(ref Source source)`
onlineapp.d(16): ... (6 more, -v to show) ...
More information about the Digitalmars-d-learn
mailing list