Three questions on std.range
Sam Hu
samhudotsamhu at gmail.com
Wed Jun 17 18:20:52 PDT 2009
Max Samukha Wrote:
> 3. This is a (hackish) way to detect if Range.empty's value is
> statically known. Infinite ranges must define a boolean 'empty' member
> that evaluates at compile time to false.
>
> Probably, there should be a more generic way to do it. Something like
> isCT(alias expression) template. I kinda have one but it doesn't work
> in all cases due to a compiler bug.
Thank you so much for all your help!
Regards,
Sam
More information about the Digitalmars-d-learn
mailing list