I want to check whether

    auto _ = pred(T.init);
    static assert(is(typeof(_) == bool));

compiles or not.

Which one

__traits(compiles, { auto _ = pred(T.init); static assert(is(typeof(_) == bool)); })

and

    is(typeof(pred(T.init)) == bool)

is preferred compilation performance-wise?

Reply via email to