Mixed int/BigInt foreach interval

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Sep 26 14:46:44 PDT 2011


On 9/26/11, Timon Gehr <timon.gehr at gmx.ch> wrote:
> it checks if the type is some sort of bit vector
> with two's complement arithmetics defined on it.

I thought it's just hardcoded:

template isIntegral(T)
{
    enum bool isIntegral = staticIndexOf!(Unqual!(T), byte,
            ubyte, short, ushort, int, uint, long, ulong) >= 0;
}


More information about the Digitalmars-d mailing list