pfultz2/cppcheck

Lifetime: nested lambdas

pfultz2 opened this issue · 0 comments

No lifetime warning for this code:

auto f()
{
    auto g = [&](auto x) { return [&] { return x; }};
    return g;
}