On Friday, 15 July 2016 at 04:38:03 UTC, Basile B. wrote:
two obvious:- recursive template. - staticIota in a foreach. (aliasSeqOf!(iota(1, T.length))
even better: template sameType(T...) { import std.meta; static if (!T.length) enum sameType = false; else enum sameType = NoDuplicates!T.length == 1; }