isInputRange not satisfied even if all individual conditions are satisfied

ag0aep6g anonymous at example.com
Fri Jun 26 13:55:16 UTC 2020


On 26.06.20 15:35, ag0aep6g wrote:
> `isInputRange!R` fails because it has no knowledge of your free `empty` 
> function. Without `empty`, `R` is obviously not a range.

To be clear: It's the same with `front` and `popFront`. You can't 
implement any range primitives as free functions.

It only works for arrays because those implementations are part of 
std.range.


More information about the Digitalmars-d-learn mailing list