Why doesn’t the C++ standard implicitly define a lambda capturing nothing as `static` by default?
C++23 allows to define a lambda as static
. i.e. If a lambda captures nothing, then it can be defined as static
:
C++23 allows to define a lambda as static
. i.e. If a lambda captures nothing, then it can be defined as static
: