On Friday, 11 October 2019 at 09:05:25 UTC, Per Nordlöw wrote:
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
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-wi