On 24.01.15 16:17, zeljkog wrote: > template filter(alias predicate) if (is(typeof(unaryFun!predicate))) Should be: template filter(alias predicate) if (is(typeof(unaryFun!predicate)) || is(predicate == struct))