static if (is(typeof(T) == int))

should be

static if (is(T == int))


T is already a type.

Ahh. Thanks!

Reply via email to