Capturing static makes no sense because they're class static. A lambda defined within a function has the same accessibility as the function it is defined within. Thus, variables that are visible within that function (like class privates) are visible within the lambda.
Class static members will still exist, even if the function is passed elsewhere or outlives the current scope.
So simply use []
in your lambda instead of [ <stuff> ]
.