std.algorithm.among

Timon Gehr via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 13 12:06:28 PDT 2014


On 07/13/2014 08:51 PM, Meta wrote:
>
> That's weird, I always assumed this worked. Was it always the case that
> numeric types can't be implicitly casted to bool?

Yes, unless their range fits into [0,2).


More information about the Digitalmars-d-learn mailing list