pfultz2/cppcheck

False negative: Warn when returning a lambda that capture by reference

Closed this issue · 0 comments

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