Let's say I have a C++20 template lambda:
auto foo = []<bool arg>() {
if constexpr(arg)
...
else
...
};
But how do I call it? I can't seem to find a description of the syntax. I tried the usual foo<true>(); and template foo<true>();, neither of which gcc seems to like.