On Sun, Aug 26, 2012 at 11:58 PM, Artur Skawina <[email protected]> wrote:

>    template staticIndexOf(T, TS...) {
>       enum staticIndexOf = {
>          foreach(size_t i, I; TS)
>             static if (is(typeof(T == I)) && is(T == I))
>                return i;
>          return -1;
>       }();
>    }

Is the is(typeof(T == I)) really necessary? If T == I is an error,
then is() returns false, or am I mistaken?

Reply via email to