On 5/10/22 08:40, Salih Dincer wrote:

> void inclusiveRange(T)(T Args...) if(is(T == bool)) {
>    assert(0, "\nBoolean type cannot be used!");
> }

Of course, 'static assert' is better there because it will catch the issue at compile time.

    static assert(0, "\nBoolean type cannot be used!");

Ali

Reply via email to