On Wednesday, 19 February 2025 at 19:08:07 UTC, bauss wrote:
On Wednesday, 19 February 2025 at 18:13:24 UTC, realhet wrote:

...


std.conv.to can convert for you.

Thx!

I tried .map!(to!dchar) instead of .byChar and it still failed.

But then I deleted the constraints where I detect if the parameter is an input range of a char, and it suddenly worked.

So this
```
if(isInputRange!(R, immutable char))
```
wont let through obvious ranges that are input ranges and contain chars...

Anyone have a clue why?

What constraint should I use then?

Reply via email to