Type Parameter Deduction

frame frame86 at live.com
Tue May 10 12:56:50 UTC 2022


On Tuesday, 10 May 2022 at 09:26:46 UTC, Salih Dincer wrote:

> However, the compiler catches other errors! How can I solve 
> this problem?
>
> Thanks...
>
> SDB at 79

What about something like this?

```d
auto inclusiveRange(T = int)(T f = T(0), T l = T(0), T s = T(1))
if(!is(T == bool))
{
     //...
}
```


More information about the Digitalmars-d-learn mailing list