isInputRange bug?

Timon Gehr timon.gehr at gmx.ch
Wed Sep 21 12:52:20 PDT 2011


On 09/21/2011 09:42 PM, Jonas Drewsen wrote:
> isInputRange!(immutable(void)[]) => false
> isInputRange!(immutable(char)[]) => true
>
> shouldn't both of them return true?
>
> /Jonas

immutable(void)[] is not a range because you cannot get it's front element.


More information about the Digitalmars-d mailing list